After completing a Wizarding Challenge, the fortress has a green halo around it for a few minutes.
What does it means? Does it affect gameplay (like loot, difficulty...) in any way or is it just cosmetic?
The green aura itself is purely cosmetic and does not affect the gameplay. When you come across a tower with this aura, it's to indicate there is a challenge either in progress or recently completed by you or another player. If there happens to be other players around, then you and the other players can team up to achieve better rewards.
Sources