I'm encountering the same issue where my battery is draining while not in use.
iphone x
IOS: 14.2
My routine is to put my phone on the charger at night while sleeping. In the morning the phone will have 10-20% battery life. Initially I thought this may be an issue with the cable, and have since changed to a wireless charger. However the issue continues.
I noticed when I picked up my phone this morning that it was bouncing between cellular and wifi. I would suspect my wifi, but my wife is using an iphone Xs and isn't having any issues.
I also compared battery information and her phone clearly shows it being connected to a charger where mine doesn't. Not sure if that's different because I've started using a wireless charger. Comparing battery information her battery was 91% while mine is 88%.