With the iPhone X you can shoot selfies in Portrait Mode. Portrait Mode is a software feature that uses the two lenses of the Apple smartphone to create the look and feel of an image shot with portrait settings on a camera with a telephoto lens.
With the iPhone X you can shoot selfies with a cool depth‑of‑field effect that keeps your face in sharp focus against an artfully blurred background. To do so, switch to the front-facing camera in the Camera app, then swipe to Portrait.