A significant security vulnerability has been discovered with macOS High Sierra, potentially allowing any person to log into a Mac with full root administrative capabilities without a password.
Guided Access allows you to set a screen time limit on your iPhone X. You can only use that app you choose. It will be automatically locked after the time limit expires.