Troubleshooting guide
How to fix the problem
Lower the brightness, look at Activity Monitor > Energy, disconnect unnecessary devices and use battery optimization options.
If the problem persists
With Activity Monitor, check which apps are using a lot of power even when you're not using them. If the battery drains quickly and at rest, check its condition; don't use a deep discharge as a one-size-fits-all fix.
Request a repair