The best solution is prevention. Irie is correct there are several different products on the market that can be used as dips, which one you use will vary depending on what you are trying to eradicate.
I personally like Revive for my day to day dipping. But even it will not kill most eggs (AEFW comes to mind) But it does a pretty good job knocking various pests out and making it easy to get them off the coral.
The only real way to prevent any type of infestation is to set up a quarantine tank and after dipping all new additions moving them to the QT for observation, and further dips if needed.
Most of what I have talked about is in reference to pests, not nuisance algae, depending on the algae there are several different biological ways to keep them at bay, for instance emerals crabs eat bubble algae, various fish nip at hairalgae, but if the problem is present there is a reason. It could be due to overfeeding, old bulbs, high phosphates ect.... more often than not, high phosphates is the culperate, and while most tests will read 0 phosphates they are almost always wrong unless you are using a low range po4 kit which can detect even a low amount of phos, because it dosent take much to start a problem. If I were you I would start by testing all water params and making sure everything is where it is supposed to be.
Oh and DONT break the bubbles in your tank, it will just cause it to spread more rapidly
It can be a pain to properly keep things out of your tank but it is nowhere near as painful as having to tear your tank apart to fix a problem that could have been prevented by better practices.