You are probably referring to cyanobacteria. It's cause by excessive nutrients in the tank. You can get rid of it by improving the water quality. Feed less, do water changes more often, make sure you are using RO
water for water changes and top offs and run a high quality carbon.