The RPi 5 SoC does not have VP9 hardware decoding which is necessary for YouTube videos. Anything above 1080p30 inside a window will suck.
Weird part is that RPi4 SoC has it.
Edit: confirmed by Raspberry Pi Foundation themselves, only hardware video decoder is HEVC.
And this kind of bullshit is why I stopped using anything Google, or at least heavily ad blocked like YouTube.
It’s not Twitter anymore, it"s Xitter…