I had the battery for my OnePlus 6T replaced, extending the phone lifetime for probably 2 years. It cost me about $100.
Forcing manufacturers to make batteries easily replaceable by the user without special tools and skills seems like it could make phones less lightweight and less waterproof. I would be fine if they just require manufactures to make it available as a reasonably priced service.