There's a slight possibility that you may have mild screen burn-in. To read more about your screen, check out this article (actually quite interesting): About the Super Retina display on your iPhone X - Apple Support
If this issue persists after a phone restart, set up an appointment with the Genius Bar: Genius Bar Reservation and Apple Support Options - Apple