Emails deleted on iPhone still show on iMac mail
I just upgraded my iMac from Mojave to Monterey a few days ago. Since then I've been noticing an issue with emails viewed and deleted from my iPhone 11. I check email during the day at work using my iPhone and delete what I don't need, then empty the trash. If I go back in and check email on my phone later in the afternoon, those emails I deleted are gone. When I get home that evening and check email on my iMac all of those emails I had viewed and deleted on my iPhone earlier in the day show up on my iMac! Very frustrating. This wasn't happening when I was using Mojave. I have mail set up as IMAP on both the iMac and the iPhone 11. Any idea why this is happening and what I can do to fix it?
One other issue I've been noticing the past few days, on my iMac, when I'm deleting several emails I've either already viewed or it's junk and don't need (For example 10 emails), there will be a progress bar at the bottom showing it's moving email 5 of 10, 6 of 10 and so forth as I'm deleting the emails. This progress bar seems to move slowly, even though the emails have been moved from my inbox into the trash. Never seemed to have this with Mojave that I recall. Seems like if I delete an email, it's instantly moved to the trash, not sure why the progress bar is indicating it's taking longer. I've tried to rebuild all of my mailboxes, but hasn't seemed to really help.
Any ideas and/or help on these issues would be greatly appreciated.
iMac 27″, macOS 12.0