Do you mean that even when you have the Show local devices only setting switched on from your phone, you still see the odd devices on your Mac Desktop app?
If that's the case, could you try logging out and back in on both devices to make sure all device settings are properly synced and let us know if that makes a difference. Also did you perform the steps from the Solution suggested by @Guido?
Keep us posted.
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
“With freedom, flowers, books, and the moon, who could not be perfectly happy?” ― Oscar Wilde