Maybe you prefer that darker aesthetic all the time. You can lock it in by going into CarPlay's settings. Tap the Appearance ...
To play YouTube videos in the background while doing other things on your iPhone, you can use YouTube premium or Safari's desktop view mode.