BevanKumar Yes, there’s a glitch in the Auto Brightness setting.
Theoretically, you’re supposed tho “train” Auto brightness by manually adjusting the brightness slider to your liking.
After a week or so of such training, auto brightness is supposed to work according to your personal preferences.
This worked very well on my Oneplus 5, but sadly failed to do so on the NP2 even after20 days of training.
Now I leave the Auto brightness toggle off & manually adjust the brightness slider.