Youtube mostly uses vp9 these days (I think it might fallback to h264 depending on the device?)
You can confirm this by loading a video, right clicking somewhere in the player and opening 'stats for nerds'
You can confirm this by loading a video, right clicking somewhere in the player and opening 'stats for nerds'