You can enable or disable emergency alerts on your iPhone through the Settings app, though there are certain alerts you can't ...
To play YouTube videos in the background while doing other things on your iPhone, you can use YouTube premium or Safari's desktop view mode.