>>3616342A clever design that allowed for bigger sensor and optics without increasing thickness tremendously, was the Nokia N90. The camera's and lens' thickness was "hidden" in the hinge, so you were mostly limited by the phone's width rather than thickness, which allowed for much more leeway.
But flip phones are dead, barring 1.5k memes.