My daughter did the same and she has Applecare+ - for her XS Max. For now she’s going to put a case on the phone. Before we hand it back after 1 year I reckon we’d have to get Apple to fix it.
But a case might do you perfectly well - which is why I’m replying.