Safari: Picture in Picture stopped working with no reason
YouTube doesn’t offer Picture in Picture unless you have a YouTube Red subscription. The fact you could do it before was possible a glitch.

How can I run a YouTube video in Picture in Picture mode on iOS? on how to do Picture in Picture for free.