No, it has nothing to do with auto-locking. It can occur at any time during use of the phone. I can’t tie it to any specific event. I play a find-the-hidden-object game that has dark areas so I turn up the brightness for it, and I expect the brightness to stay as set. But the screen will dim unexpectedly when I’m using it or any other app. However if I check the settings on my phone, the indicator shows full brightness, not that the phone has dimmed (even though I know the display is dimmer than it should be). I haven’t been able to determine a specific time that this happens. I can be sitting in one spot where the ambient lighting hasn’t changed but the screen will dim markedly without me telling it to, and if I try to change it back, the indicator shows full brightness, and any attempt to make screen brighter will fail. This also happened in iOS 12.3.4 and at least one earlier version of iOS. Thanks!