If you have had to remove the display assembly on your iPhone then the waterproof seal would have been broken. It is vital that you replace that seal with a new one when reassembling the iPhone. 3 x IPhone X Waterproof Screen Assembly Adhesive Stickers.
eBay