Replacing that bezel comes with its own risks; I've had a bezel come off on me before and basically I ended up ruining the screen trying to glue it back on, so keep that in mind when contemplating your options. Harry has a good plan there, but the OLED is right below the bezel so in the act of separating it you're at risk of damaging it. I will certainly be a very inexpensive fix if you can pull it off.
The alternative you could also consider is to just go ahead and replace the screen. The price of OLED displays for the X series phones has dropped to dirt cheap levels, so it's definitely worth considering as one of your choices. The only downside is that you'll lose the True Tone function unless you or someone you know has a device programmer to copy the MtSN number from the old screen or the phone into the replacement screen. As an example, looking on AliExpress you can find those screens (very similar to the iPhone X screens I've been buying) for around $14 USD. I used to be ecstatic when I found one for only $35, so you can imagine how I'm thrilled with the current prices. Here's one that works for your phone.
AAA OLED For iPhone X XR XS MAX Display 3D Touch Screen Digitizer For 11 Pro 12 Mini 13 Pro Max 14 Plus 15 LCD Replacement Parts - AliExpress 509
Whatever you choose you'll need to use the guide to remove the screen, so here's the one to follow.
iPhone XS Screen Replacement - iFixit Repair Guide
Good luck with your fix; let us know how it all turns out.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
1