On Spotify, in the settings, make sure that “volume leveling” is turned on. On Apple Music in the iOS settings, make sure “Sound Check” is turned on.