Re: Small room, large AI.
The focal length basically prohibits that.
Short lens: crap magnification, but wide field of view.
Long lens: great magnification, but restricted field of view.
Smartphones inherently are flat(ish) and so will always have a short lens and therefore are always going to be worse at magnification than any camera. Smartphones are simply the new baseline for low end cameras for low end personal photography and are really only notable by their ubiquity meaning that they are often "in the right place".
Frankly though, when it comes to improving the quality of pictures from smartphones some rudimentary knowledge of photography basics would deliver a better result than many technical improvements would do...