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.
This tutorial is mainly introducing how to remove the home bar on your iPhone X. If you want to hide the home indicator of your iPhone X, just keep reading.