This is a weekly question over here it's mostly caused by water param's, too much light, bad bulbs, not enough water changes, overfeeding, not enough flow in the tank and stuff like that
try using the search bar ( algae) do some reading hope that help's