Compare that to today, where UV exposure mostly means exposing the skin to massive bursts of UV for short times, at best in an effort to build skin pigmentation that isn't sufficient. That's completely different and much more damaging, leading to the general feeling that any UV is bad.
However, the change in exposure is surely true. I'm just not at all convinced that complete shielding from UV is a better choice than occasional UV.
Until recently, children would run around outside a lot during the summer, even in urban environments, and especially in suburban or rural ones.
Choosing the natural over the artificial is a reasonable default where the science is uncertain. But just remember that science has eliminated an awful lot of problems.
Also remember that natural experiences aren't always a la carte. Picking natural foods from disperate regions might be very unnatural, as is getting natural UV light after taking a shower.
Not that we would wish to have a complete absence of antibiotics. But, the attitude of "you have a virus, so take this antibiotic just in case there's also a bacteria", sounds a lot like "block all UV light from hitting your skin, at all times". I am skeptical.
Using soap has a big effect on how the UV light hits your skin, the damage it might cause, and the benefits that it might have. Of course this is all speculation on my part, but I am just warning of the idea of picking one natural thing at a time -- natural things go together.
However, anecdotally, the "mud beggars" at modern Renaissance Faires are said to have healthy skin. It could be a confusion of cause and effect, though.
So, while we wait (perhaps decades) for nutrition to become a more reliable science, I like to consider it from an evolutionary angle. That which is very dissimilar to what my ancestors experienced, like plentiful sugar or a sedentary lifestyle, is more likely to be bad for my health.
Exposure to the sun for hours a day, including the UV part, was part of our ancestors' lifestyle from the beginnings of our species, until a few decades ago. Now it is possible that this is the exception, and we should keep ourselves shielded from UV at all times even though it was what we evolved for. But...
- we don't now much about our skin microbiome, but we know we have one and it matters, and it seems unlikely that removing all UV would not impact that - we know there's an impact on vitamin D levels, but the details of that are still unknown - we know that eczema, psoriasis, and other skin conditions have been rising in recent decades, since the "always wear sunscreen" advice became common
Now, many that's all a coincidence, and UV is bad for us, and lack of UV is good for us, regardless of the fact that it's the environment we evolved for. But I'm skeptical.