How to check if there is a running copy of the plugin?

Hello!
I am making my own plugin. And it only has to work once.
But if I run a synchronized copy of obsidian on my phone, the plugin will work 2 times.
Is there a way to find out how many copies of the platform are running in order to change the behavior from this?