It turns out that with much older devices if a lock could be made so that the device could not be turned off without knowing the password, referring to mobiles from other brands such as Samsung, and a brand like Xiaomi that boasts of the variety of options it offers  without having to install third-party apps do not have it is a complete shame.