Toffler's book Future Shock has some interesting discussion about advanced production techniques allowing high degrees of bespoke customisation with very little additional costs beyond a generic production line.
We're still a long way from there RE smartphones, though projects like the PinePhone with hardware switches for things like microphone, camera, WiFi etc, along with a less locked down OS perhaps show a path to achieving this.