the imager on this phone is not a 2000 dollar DSLR, its a lens on a chip. you have very limited, basic control over the settings.
a lot of things on this device are automatic and the images does an average weighted balance of light (lumens) and averages the output.
you are shooting at night at potentially "bright spots" (fire) against black /dark/limited illuminated objects in the frame, so the imager does its best.
there is likely nothing wrong with the camera. the imager does not have the dynamic range your eyesight has, so what you see is vastly different from what the imager sees.
Aperture, f-stop, ISO are the things you have to manipulate to take the best images you can. if you increase/decrease one of those, you have to compensate with the other two, and so on and so forth.