It can probably be fixed with an update. When did you purchase your iPhone XS? If its less than 14 days ago you can return it and get a full refund.
You can also bring it to an Apple Store for a diagnostic, something might be wrong with your front-facing camera.