It’s up to the website or app to enable picture-in-picture. Some websites may allow embeded videos to work, but YouTube’s app and site only allows PiP to work if you subscribe. I have not heard of any way around the limitation. Then again, it’s not something I’ve been looking for.