Well there are several ways to contain it. first you could use a new sponge with a green scrubby on the glass and every day clean the tank. (Algae blooms come from lighting. either direct sunlight or from a plant light. Usually Algae will not grow in low light. (like from a kit hood.) When this happened to me a few months ago in a newly setup 5.5 I didn't want to use chemicals to get rid of it for fear it would hurt my betta. But I did the natural thing and added 6 mystery snails to the tank and they went to work on the algae growing on the plants first, and I only cleaned the sides and front of the tank to keep the algae from forming there.
Now that the tank is mature, and I still have an algae growth (to feed the snails) The water is crystal clear and the plants are doing very well. The plant growth and the algae are your tanks health barometer. Any problems your tank might have will show up first in the plants and algae. Things start dying off you know right away you have a big problem with the water quality and health of the tank.
I think tank was getting too much natural light in the afternoon so I reduced the hours the tank light is on. Also, I’m working a new job and asked family to turn off lights which they did eventually but not early enough 😕 so on nights I work I just turn off prior to leaving figuring enough ambient light is present until sun sets.
Yes the use of timers is a good way to set the parameters for your lighting. The best timers I have found are Mechanical timers, easy to set and they only need to be set once. I tried the Digital and after going through step by step setup they just never worked well.
I have recently moved into wifi App controlled timers - and I love them.
They are basically a unit that you insert into the plug socket in the wall, and then plug the light into the unit.
I get to switch the light on or off manually (using the App on my phone), or set up a lighting shedule across the week.
One major advantage is that I can see, buy glancing at my phone, whether the light is on or off, even from 200 miles away.
Very easy to set up, and very little more expensive than the old versions of timers.
(of course, you can also use the same units for all sorts of things - lamps, radios, coffeemakers... so I bought a set of 4 and have them all in use around the house. Definitely a good buy for me in my circumstances)