On android you can hold down the power button and then tap lockdown mode. Then it will require your pin/password to unlock again. Ideally have a password as your authentication method if you're concerned about privacy.
(Not to be confused with power + volume down which takes a screenshot).