You can use Portrait mode on your iPhone to take high-quality photos, as long your iPhone has at least two camera lenses ...
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.