Using the pixel 6 and it seems when the screen turns is YouTube crashes and stops playing. I like videos of rain when sleeping but it seems to crash when the screen turns off.
You tube premium is a must have to get this feature. Just tested mine to double check and it works fine when screen off. Pixel 4a. Maybe a pixel 6 problem? Don’t forget to reboot once in a while as that can always refresh things nicely.
No power-saving modes turned on, or 3rd party power-saving apps installed, right? Did the phone already install the update that was available right out of the box?