Five taps of power button on iPhone disables biometrics until you enter the passcode. I always do this before going through airport security
Depending on your version and flavour of Android you may need to enable this "Show Lockdown Option" in your settings.
[1] Opening this varies - my pixel is power + vol up, some phones are hold power, etc.