iTunes match uses different appleid but won't connect on iPhone
I have a different appleid for iTunes match then my main appleid for my iCloud+ account. I could easily change the account on my iMac and MacBook Air but can't seem to get iTunes match to work on my iPhone. I changed the id utilizing settings in the Music app but my iCloud+ id did not change in Music. How do I log out of that account and into the one with iTunes match?
iPhone SE, 17