Icons from laptop apps appear in my desktop Dock
I am running Monterey 12.6.7 on a late 2015 iMac. Sometimes icons for apps running on my laptop appear in my iMac's Dock. (It mostly seems to be browsers like Firefox or Brave.) I have no use for this feature and I would like to disable it, but if there is some easy way to do so I have missed it in Preferences. Is there a way to disable this behavior?
iMac 27″, macOS 12.6