I use a Chargie (chargie.org) hardware device to limit charge on my devices to 80%, and the batteries last nearly forever. Currently typing this on a 4 year old iPhone with like new battery function. I highly recommend these, I’ve been using them since they were first sold. I have no affiliation, but am a very satisfied customer.
For my Macbooks I use an app called Al Dente. I still have have 2016 MacBook with like new battery life.
People will ask is this worth it? Isn’t it a pain to have a device only charged to 80%?
It is totally worth it- because I only do it 80% thing when staying home, so when I travel my devices have full battery health and don’t run empty when I most need them.