Tryadjusting the iPhone Auto-Brightness featurebefore turning it off altogether, your phone may just be calibrated wrong.
How Do I Stop My iPhone From Dimming Automatically?
That will prevent your iPhone from automatically adjusting its screen brightness based on ambient light conditions.

If you want to take total control, you’ll need to also shut down the Night Shift feature.
Reducing screen brightness is one way tosave battery on an iPhone.
Disabling Auto-Brightness may result in needing to charge your iPhone more often.

Heres how to disable Auto-Brightness on an iPhone:
OpenSettings.
Tap and drag to scroll down the list of configs.
TapDisplay & Text Size.

Tap theAuto-Brightnesstoggle to turn it off.
Your iPhone will no longer dim in response to ambient light conditions.
Heres how to turn off Night Shift on an iPhone:
TapDisplay & Brightness.

Tap theScheduledtoggle to turn it off.
TapBackto verify Night Shift is off, and Night Shift will no longer adjust your display at night.
Heres how to adjust your iPhone display brightness:
Open theControl Center.

Slide your finger down to decrease the brightness.
Slide your finger up to increase the brightness.
Why Does My iPhone Keep Lowering the Brightness?
Your iPhone is designed to automatically change its brightness throughout the day based on the current conditions.
There is also a low power mode that kicks in when your battery is close to running out.
you’ve got the option to work around this built-in behavior byputting your iPhone in Silent Mode.
Flip the hardware switch on the side of your unit to silence notifications.