The best and easiest way to remove bacterial bloom is with a water clarifier. The water clarifier is phosphate free and is safe to use in any freshwater fish tank.
First of all remove excess uneaten fish food dead fish or dead snails and dead or dying aquarium plants.
How to get rid of bacterial bloom in freshwater. Regular partial water changes and good tank maintenance will usually prevent severe bacterial blooms. The better way to deal with cloudy aquarium water is to remove excess organic materials that are causing the bacterial bloom. So to get rid of the bacterial bloom and clear up the foggy water you need to remove the food source these bacteria are consuming in order to multiply.
In addition delicately lift fish waste detritus or debris from the gravel or substrate. In my experience the easiest way to do this is with a gravel vacuum such as this one or any other similar device you can find in pet stores. Water clarifiers can be bought on amazon for less than 5.
It does not harm your fish or plants and it does not affect the ph level of the water in your aquarium. In new tanks the bloom will dissipate as the nitrogen cycle becomes established and stabilizes.