iphone wont connect to internet or mobile data

My girlfriends iphone 12 refuses to connect to the internet or her mobile data, for whatever reason she can still use facebook messenger to message people but everything else is saying no internet connection and below the wifi network in the wifi settings it says no internet connection, weve tried factory resetting the phone and resetting the network settings and nothing is working