Hi @arslanelver,
The track quality should be the same between all versions of the Spotify app, or at least I’d hope so, however that isn’t anything we have direct control over and it’s up to Spotify on the quality of the track they provide.
I’d suggest playing Spotify from both the Sonos app and your Apple TV and listening for any difference. I don’t expect any difference in quality, but if there is then I’d recommend making sure everything is running the latest version, then reaching out to Spotify for further information and assistance if you feel the quality isn’t equal.
I hope this information helps!