The only workaround for the phone would be to still step back and take the image with the 24mm equivalent, then crop the image a whole lot to get an appropriate and equivalent view.
> I think a DSLR would struggle with the same perspective distortion if you put an ultrawide lens on it.
Note that "proper" lenses have more room for corrective elements in their lens stacks, so decent quality setups should experience less distortion than the tiny smartphone pancakes.
An ultrawide will never be good though, it's a compromise for making things fit or making a specific aesthetic.