Approximately how much charge does your iPhone X drop overnight? And how long is your sleep (time iPhone is not in use)? Which iOS firmware are you on? Does 11.2.2 improve battery in any way?
This question DOES NOT apply to those who leave their phone on charge overnight.