Apple TV 4K
The best way to get your iPhone Xs content on the TV, and the best way to connect your iPhone to the TV, is to use an Apple TV.
Apple sells a variety of Apple TV models, and if you are looking for a way to use your iPhone Xs on your TV, this is better than connecting a Lighting to HDMI adapter and a separate HDMI cable to it.
With this option, you get a standalone device to upgrade your TV to a smart TV as well. This is one of the best streaming devices you can buy even without using it to AirPlay your iPhone to the TV.
The Apple TV 4K is $179 with the base amount of storage, and if you already have an Apple TV or Apple TV 4K you can use that one.