This was back in 2020 when I was in another apartment. Yes, the afternoon sun was causing a problem and I did try to balance the light intensity. I had GDA and hair algae that wouldn't go away.
I decided to try the famous and old
One Two Punch whole tank algae treatment.
@plantbrain has also written about this in the past.
The basic idea is to do more damage to algae than you do to your plants. It's key that your plants are as healthy as possible before trying something like this.
So, thoroughly cleaning the tank and confirming your husbandry practices are correct, as
@Burr740 says - CO2 is dialed in, and that you've tried less drastic options, are what you do first. Then, if algae continues to hang on, this can finally push algae over the edge.
It worked for me in this case. YMMV.