Regarding batteries specifically, it should be illegal to produce any device without user-replaceable batteries. The EU is at the forefront of these initiatives[1], as usual, so hopefully this trickles out to other governments.
Batteries in EVs are also a growing problem, for both production and disposal. Hopefully we'll have similar regulations there as well.
[1]: https://www.theverge.com/2023/6/24/23771064/european-union-b...