Greetings shakil131,
We understand that when you have any Bluetooth or corded accessory connected to your device, your music is not playing in Dolby Atmos and that you reviewed About spatial audio with Dolby Atmos in Apple Music for assistance.
Is this music downloaded or being streamed? If being streamed, does downloading it change anything? And vice versa, if downloaded does attempting to stream it change anything?
Are we working with iOS 14.7 on your iPhone? If not, please be sure to install that update after making a backup. Update your iPhone, iPad, or iPod touch
If we are, let’s also restart your iPhone, if you haven’t since noticing the situtation, to refresh everything. Restart your iPhone
Thanks.