Wearing sunglasses apparently helps. You just need to make sure they have a proper UV rating, a lot of the cheap ones you get online don't do a good job of blocking UV.
Years ago I saw on TV a report where people bought several sunglasses sold in the street in Brazil and compared to the expensive brands and they all cut UV quite effectively.
Not that I would trust national TV test methodologies and risk my vision but it was a curious result.
My layperson understanding is this happens because the mechanism that dilates the pupil responds to visible light so glasses cause it to open wider, but if they don’t block UV then you end up with more UV exposure than if you didn’t wear anything
Most plastics are transparent to UVA, which is like 90% of UV that reaches earth's surface. They only start absorbing at higher UV frequencies. That's why sunglasses have dedicated UV ratings. You can bring your sunglasses to basically any optometrist and test how well they block UV. It takes 20 seconds and they'll probably do it for free.
Glass protects from UV bellow 350nm, which leaves 350nm-400nm band open. So additional coating is required. I might be wrong but such factors as glass thickness and the radiation intensity should be also accounted for. Every physical object is mostly an empty space ...
It actually does not not matter what you see. You can't see UV, and it harms your eyes. What you need is a protection from UV band, and that is exactly what your eye can't see.
Not that I would trust national TV test methodologies and risk my vision but it was a curious result.