After the first battery of my Samsung S4 expanded at the end of its life in less than 2 years, I found a utility that didn't work perfectly but could limit charge anywhere between 30 to 100% most of the time, and it prolonged the lifetime of the couple of later batteries during the 10+ years I used the phone with a limit around 66%.
I was glad to see my new Samsung XCover 7 has a built-in option to limit charge to 80%, although a flaky usb cable could sometimes overcharge to 100%. And also has a removable battery.