Screen holding time lol?

Fi
- in P series
1

I have a Huawei P20 Pro and would like to switch off my cell phone that switches itself off when I look at a picture, for example. Does anyone know how I can set this?

do

In the developer options