This question produces unusually strong opinions in both directions. The honest answer depends on where you spend your day and what you are trying to prevent, and it is more nuanced than either camp usually allows.
What actually reaches you indoors?
Ultraviolet B is almost entirely blocked by standard window glass, which is why you do not burn through a window.
Ultraviolet A is not. A substantial proportion passes through ordinary glass, and UVA is the wavelength responsible for most photoageing and a meaningful share of pigmentation. Laminated windscreens block more than side windows, which is why driving-related damage is typically worse on the right side of the face in the UK.
So the question indoors is not about burning. It is about the slow damage that shows up decades later.
Does it matter how far from a window you sit?
Considerably, and this is the part usually left out. Ultraviolet intensity falls off sharply with distance from the glass.
Someone working at a desk directly beside a large window receives a meaningful dose over a working day. Someone in the middle of a room, several metres away, receives very little. A room with small windows and the desk facing away is a different situation again.
Being specific about your own arrangement is more useful than a blanket rule in either direction.
What about screens and blue light?
Screens emit visible light including blue wavelengths, and there is evidence that visible light contributes to pigmentation, particularly in melasma and in deeper skin tones.
The dose from a screen is very small compared with daylight. Studies raising concern generally used intensities far higher than a monitor produces. If you sit by a window, the daylight is doing considerably more than the screen.
For someone actively treating melasma, a tinted sunscreen with iron oxides is a reasonable precaution. For everyone else, screen-specific worry is not well supported.
How much ultraviolet is there in a British winter?
Very little UVB. The UV index in the UK typically sits at or near zero from November through February, which is why vitamin D synthesis effectively stops and supplementation is advised.
UVA is present year-round, at reduced but not negligible levels, and it penetrates cloud effectively. Snow reflects a substantial proportion of ultraviolet, which is why winter sports produce burns in conditions people assume are safe.
So what is a sensible rule?
From roughly March to October in the UK, daily sunscreen is straightforwardly worthwhile for anyone going outside at all.
In deep winter, it depends. If you commute in daylight, drive regularly, work beside a window, spend time outdoors or are treating pigmentation, it remains worthwhile. If you leave in the dark, work away from windows and return in the dark, the benefit is genuinely small.
Many people find that using a moisturiser containing SPF through the winter is a reasonable compromise that keeps the habit without the effort.
Who should apply it regardless?
Anyone treating melasma or pigmentation, where visible light and any ultraviolet undoes progress. Anyone using a retinoid or acids, which increase photosensitivity.
Anyone with a history of skin cancer or a large number of moles, anyone on photosensitising medication, and anyone with rosacea, for whom ultraviolet is among the most consistent triggers.
Does this differ by skin tone?
The dose required to cause damage is higher in deeper skin, but the pigmentation response to ultraviolet and visible light is stronger.
So for lighter skin the winter argument is mainly about photoageing and skin cancer risk, and for deeper skin it is mainly about pigmentation. Both point toward using it when there is genuine exposure, and neither supports the idea that sunscreen is unnecessary for anyone.
What about vitamin D?
A reasonable concern and not an argument against sunscreen. In the UK, sunlight is too weak between October and March to produce vitamin D at all, which is why supplementation is advised for everyone through those months regardless of what they apply.
Through the summer, studies of regular sunscreen users have not generally found clinically significant deficiency, largely because nobody applies it thoroughly enough to block synthesis completely. Taking a supplement removes the trade-off entirely.