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 > Screen pinning.
Turn pinning on.
To always require a pattern, PIN, or password when unpinning a screen, turn on Lock device when unpinning.