Recent iPhones (and many Android phones) have optical image stabilization; an element in the lens moves to compensate if the phone shakes during the exposure. Very new iPhones (and some Android devices) also have sensor-shift image stabilization, which moves the image sensor.
These features are also available on many dedicated cameras and interchangeable camera lenses.
These features are also available on many dedicated cameras and interchangeable camera lenses.