Avoid ghost touches while your phone is in your pocket.
Enable:
-
Android (Xiaomi, Realme, etc.): Settings > Lock Screen > Pocket Mode
-
Samsung: Settings > Display > Accidental Touch Protection
iPhone: No pocket mode, but screen locks automatically.