Addictivetips published a tutorial about how to watch YouTube in picture-in-picture mode on iOS 14.
How to watch YouTube in picture-in-picture mode on iOS 14
iOS 14 has a picture-in-picture mode that works on any website that can play a video. The only condition is that the website is accessed via Safari.
How to watch YouTube in picture-in-picture mode on iOS 14