A DSLR and mobile phone camera optimize for different things and can't really be compared.
Mobile phone camera's are severely handicapped by the optics & sensor size. Therefore to create a acceptable picture (to share on social media) they need to do a lot of processing.
DSLR and professional camera's feature much greater hardware. Here the optics and sensor size/type are important it optimize the actual light being captured. Additionally in a professional setting the image is usually captured in a raw format and adjusted/balanced afterwards to allow for certain artistic styles.
Ultimately the quality of a picture is not bound to it's resolution size but to the amount and quality of light captured.