You can opt-out the WebView/in-app-browser of specific apps from lockdown mode, which might help with Youtube (if you opt out Firefox). Go to Settings > Privacy & Security > Lockdown Mode > Configure Web Browsing. Then uncheck whichever app's webviews you want to exclude from it.
You can also opt out specific websites in Safari, while browsing, by tapping the settings icon in the left of the URL bar, then Website Settings, then unchecking Lockdown Mode.