While supplements can help, nothing been sun on your skin for vitamin D and also for other help benefits - in moderation of course.
If someone's doctor has told them to get outside more and they find it is helping, I would not personally recommend someone stays in and just take supplements as an alternative.
Too many doctors are quick to look at a person and their lifestyle and just say "welp, get outside, get more active, lose some weight, get some sun"
There are cases where supplements or medication are completely valid.
How many (primarily women, but some men), have hypothyrodism. I know of at least 3 other women in my life who, instead of the doctor listening to their symptoms, just kept recommending "eat better, exercise more, lose weight".
No. There was a serious problem. And a problem which literally makes those three things almost impossible. And can be detected with a simple blood draw.
One of my friends finally went to an urgent care, they did the test, prescribed levo with a "follow up with her doctor", and the doctor wouldn't renew the prescription because she was just "inactive and retaining water". Of course at this point she switched doctors to one that wasn't a misogynist.
Same thing with vitamin D. If you live above 37 degrees of latitude, chances are you are taking vitamin D most of the year because "sun on your skin" just ain't happening.
Not sure if you miss read my post, but to reiterate 'if sunlight is working, and the person is feeling better, then supplements are not likely to be needed' - I never said don't use supplements, or that they have no use.
Add to that, avoid multivitamins if you are on medications. Turns out some vitamins, specifically Vitamin C, may prevent some medications to be absorb in the bloodstream.