Apple's auto-brightness option is actually buried under the accessibility menu in iOS 26, but that needs to change with iOS ...
So, you've been binge-watching your favorite TV series on your iPhone all afternoon when out of nowhere, your screen starts dimming on you. No biggie — you probably just have auto-brightness on.