I use two devices with clean installed xioami.eu 9.7.4 (Mi 8 Pro & Mi 9 SE).
At the very end of the list of settings in "Ambient display & Lock screen" there's this "Pocket mode" (Lock touch gestures when placed in a pocket) switch.
But only on Mi 8 Pro (on Mi 9 SE this switch is hidden).
On...