Been real disappointed with my battery life, otherwise this phone is perfect. I'm doing a return of this pixel 2 xl and getting a new one soon to get the $100 Google store credit. I hope this battery is better or I may just be using my phone too damn much.
What's your settings on your phone?
You can save a lot of battery life by:
-changing your live wallpaper to a static one, and a dark themed one
-turn down brightness from the default 50% to 10-30%(or whatever you feel comfortable). Turning off adaptive brightness might also save battery
-turn off ambient display
-manually turning off notifications you get from most of your apps
-turn off nfc and bluetooth when you aren't using it
-use wifi as much as you can over data
-put your phone on airplane mode when you're sleeping
-don't be OCD on checking the battery or checking your phone every 5 minutes for 30 seconds as that will reduce the battery faster than Checking your phone less but for longer sessions
This gives me about 5-6 hours On Screen Time and making my pixel 2XL last for 2 days without charging using about 70-85% battery(I could get 7 hours OST using about 90% battery). Also charging your phone from 15-20 to 80-85% battery will help prolong it in the long run. Don't try to top your battery to 100% too often or 0%. Will stress it and make it lose charge faster.
Whatever you can do while still making it an enjoyable experience for you
if you're having battery/app issues, restarting the phone can do the trick.. Or safe mode.