Lock/secure settings section in the app

Hello!
I want to set up the Lilygo devices using USB and prevent the users to make changes in the settings section of the apps. Maybe it’s possible to add a kind of admin password?
Maybe an idea, which is not very complicated to implement?

br,
Thomas