But in terms of general advice that does the most good for the average person, I strongly recommend just doing whatever the manufacturer says. Just use the device and charge it when you want. Live. Some team at Apple, Tesla, Google, whatever, spent 9 figures plus figuring out how to charge the battery so that it meets lifetime guarantees under normal use. There’s too much bad advice out there. Don’t discharge fully every cycle/occasionally (that was NiCd specific, and it was bad advice then). Don’t obsess about turning things off, force quitting apps, putting your car in neutral, or whatever dumb thing your neighbor said.
That being said, the answer here is correct, but keep in mind how that works with the battery management your device already has. Tesla explicitly recommends a lower limit. Do it. Apple phones limit charge cap to 80% until before you wake up. That’s great.