On Google Pixel 8 (IDK about other Android phones) you can press the power button + volume up button to launch a pop-up menu with the following options: restart, power off, lockdown, emergency.
If you select lockdown you'll be required to use a pin or password to unlock the phone.
If you select lockdown you'll be required to use a pin or password to unlock the phone.