For cd, it's usually brickwall-limited to no more than 10db max dynamic range (often no more than 6db). This makes things sound "better" on typical playback equipment, which is... not good, compared to the sound of live instruments in a room.
Vinyl is a different beast. It needs RIAA equalization on the master (which is reverse-eq'd by the playback equipment) to managed the size of bass grooves and keep the needle from jumping out of the track, and to make the highs physically big enough for the needle to pick up well. Dynamics are constrained by the physical limitations of the media. So it's a separate master.
That's not a big deal, though. The constraints of vinyl slot in quite well with the constraints of speakers and amps! This is why vinyl, despite its on-paper inferiority, can sound as good or better than digital.
But in the end, it's all about the speakers. I mix on a pair of Tannoy System 12 speakers and an old UREI studio amp that would be the envy of many hi-fi nerds - but I don't consider a mix done until it sounds good on my stock iPhone earbuds and shitty car stereo. Mix to the output, not the medium.