YouTube is now officially on Android Auto, so you can watch videos right from your car's display, but only when you are parked.
For cars that already have the update, this means no more sketchy workarounds or relying on special car systems; it is now built in for supported cars receiving the rollout.
Android Auto blocks playback while driving
For safety, playback stops as soon as you start driving, showing a "Not available while driving" message.
Video quality is capped at 1080p60 for now, and background play is not included yet, even if you have YouTube Premium.
To try it out, while your vehicle is stationary, open YouTube through Android Auto if the feature is available in your car.