Easy assuming you're on the latest update, June and onward fixed my battery issues for me personally. Standard base model Pixel 7 here.
Place all apps that don't need to notify you RIGHT AWAY into restricted power mode!
Settings > Battery > Battery Usage > click on each app that doesn't need to give you instant notifications and make sure to change the ones you can from optimized to restricted.
If you're using Revanced YouTube like I do personally, MAKE SURE to disable MicroG (the app used to authenticate Google login services), it WILL run in the background and drain battery, YouTube itself is fine to leave as you use it. (Optimized is how I have mine)
Sorry boss thought we had freedom here, I'll be careful next time around. Deleted that post and the rest of mine here. 🫡
I will continue to lurk and leech from here on out.