If you're on Android and you update your Apple Music app to the latest version, you'll finally get access to the service's lossless streaming and Dolby Atmos Spatial Audio. For the latter, your phone needs to support Dolby Atmos to get the feature to work. More flagship-tier devices will most likely have this feature. It will work with any headphones, though. As for lossless, you will need external hardware like a DAC to get hi-res lossless.
These features come at no extra charge for subscribers, but not all tracks support lossless streaming yet. The company does plan to bring that feature to all of its 75 million catalog. And for Dolby Atmos, there are curated playlists and special badges on the streaming service to make it easier to find these songs.