Camera doesn't work when I turn phone sideways

Lately when I use my phone outside in daylight, when I turn it sideways the screen goes black. It doesn’t do this when I use it indoors.

What’s going on?

Welcome to the Fairphone community.

Probably you are not wearing shades indoor?