How to prevent iOS from dimming or changing the screen brightness
iOS dims the display just before the Auto-Lock period.

You can set this period in Settings → General → Auto-Lock.

However, if Settings → Battery → Low Power Mode is set to on, the regular auto-lock setting is disregarded.