Picture-in-picture for any element
This feature is not (yet) supported on your device
The Document Picture-in-Picture API makes it possible to open an always-on-top window that can be populated with arbitrary HTML content, not just a <video> element.
On iOS, you may need to enable MediaRecorder in:
Settings > Safari > Advanced > Experimental Features > MediaRecorder
Demo
Click the "+" button of the web cam Web component below to start your web cam. Then click the "Start picture-in-picture" button and see that the entire Web Component is moved to the picture-in-picture window.
You can use all controls of the Web Component while it's in the picture-in-picture window.
Documentation
Document Picture-in-Picture API on MDN