Any so-called astro nightsky photos taken with such a tiny camera will be rather low quality. They might look okay on a small screen like a iPhone or iPad, maybe even on a small computer monitor, but they won't look that great on a 65" 4K TV set. Nor will they look good when printed to a size large enough to hang on a wall in a house. You can scale down the sensor and the lens, but you cannot scale down light photons. Those tiny cameras with their tiny sensors just cannot gather enough light for really good night sky photos. Not on their own anyway. They will likely gather less than 3% of the light from a similar setup that has a full frame sensor and full frame lens. Aperture numbers like f/1.8 or proportional only. An f/1.8 lens from a full frame camera has a physical aperture that has a 35x larger physical aperture than the one on a smartphone camera with the equivalent size of FoV (field of view). So that means the full frame camera can capture 35x more light than the smartphone camera when both have the same FoV and both have the same f number. Plus the full frame sensor has bigger pixels and more of them. Bottom line is this, the physics will highly limit the smartphone camera because yes, in this case, size does matter!
However, if you have a nice telescope with an eyepiece on it, which of course gathers huge amounts of light, and you place your smartphone camera right up to the telescopes eyepiece and let it focus on that image, then you can take some decent astro photos. They still won't compare to using a camera with a much bigger sensor, but they will look really good. We call that "digiscoping".