You can turn on the AssistiveTouch feature on your iPhone X by going to Settings > General > Accessibility > AssistiveTouch.