It is sensor size that matters.
https://newatlas.com/camera-sensor-size-guide/26684/
Full frame is the size of 35mm film.
Much more detail. The size in the cellphone cameras are about the size of your pinky nail. Larger camera lens brings in more light plus are better lenses. The cameras software also makes taking great photos easy.
Here is a photo I took Dec 24, 2018 from the 2nd floor window looking out at a water feature in front of the building I work at. http://davidswebsite.com/pond/pond.jpg
I used a 5 year old LG-G3 which has the specs of a Samsung S8. Not bad but looked at full size and it is awful. Make smaller and it starts to look good. A full frame camera would be sharp at full size.
The cellphone cameras can take real good close up photos of objects but anything 10ft away will start to show the raggedness of the poor resolution you get with a small lens and sensor.
http://davidswebsite.com/pond/pond.jpg
Minnesota is absolutely correct. . . You can also control for depth of field and f-stop on a dedicated camera far better than on any phone camera.
The designers and makers can only do so much with the tiny package they can fit into the space available in a phone with all the other components. Adding extra cameras can help by doubling light collection and superimposing one image on another or bracketing exposures to get the best picture via software (HDR), but those are kludges when a DSLR has no space or size compromises to cause the need for all this software approximation.