Use display settings

Brightness settings

Adaptive brightness
To automatically fit your screen's brightness to the light around you, turn on Adaptive brightness. This is on by default. You can change your brightness while adaptive brightness is on. Over time, your phone will learn your preferences.