Use pinning to keep the current app in view until you unpin it. For example, you can pin a game and your child cannot navigate anywhere else on your phone.
You can set up a pattern, PIN, or password required to unpin.
Go to Settings > Security & location > Advanced >Screen pinning.
Turn pinning on.
By default, you must always enter your pattern, PIN, or password when unpinning a screen. If you don't want this security before accessing your other phone screens, turn this option off.