I'm not sure if it's the source material or Youtube's compression, but music on Youtube often sounds terrible compared to e.g. Spotify. There are obvious artifacts and dynamic range issues.
Music on YouTube is resampled to 48kHz for Opus. YouTube's resampler is probably optimised for speed over precision. Resampling to 48kHz before uploading can yield better results.
I watched a video recently where a Mastering Engineer said that they will cut different releases for different streaming services. There is even a tool they recommended to compare the masters to different platforms formatting: https://nugenaudio.com/mastercheck/