The iPhone X isn't like other iPhone models. Its lack of a physical Home button means you can't perform the usual shutdown procedure. To power down or reboot your iPhone X, press and hold the side button and either volume button at the same time. Then slide to power off.
How do I turn off the iPhone X?