Make sure your iPhone X and your Airplay compatible device are on the same network. In the home screen on your iPhone, swipe down from the upper right-hand corner and hit the “Screen Mirroring” button. Whatever you want to display on your Airplay device should then become visible on the screen.