You can enable YouTube Dark Mode by going to your profile picture in the top right corner, selecting Appearance, and choosing Dark theme on desktop; on mobile, tap your profile icon, go to Settings > General, and turn on Dark theme to switch the interface to a darker background.