IPad not going to sleep/auto dim after the set period of time when the home assistant app is on

So I recently gotten an iPad and I’m using it as my homes dashboard tablet. Been setting it up and for some reason when the Home assistant app is on, it wouldn’t turn off/go to sleep/auto dim after the set period of time, only when I press the power button. I have tried this with guided mode and normal.

I’m assuming if webrtc integration is the cause of it but I’m not too sure.