The screen lower brightness and vright again and again become darker

When I use the software for some reason after some time the screen just lowers brightness almost dark and then suddenly becomes bright again and once again dark
Does this happen to anyone else, do you know the reason?
I tried playing with the iPad settings but nothing changes it.

That happens to me when on lower battery and iPad is heating up, it could be something to save it from overheating?