@panzer So much this.
My kids have also figured out that they can visit YouTube in Safari, pick a super long video, enter Picture in Picture, and it completely bypasses all screen time limits.
I reported it to Apple two years ago. They acknowledged it. Still no fix.