Go to
Settings > Network & internet > SIMs > APN
You can add, edit and delete APNs
The settings are on the carrier’s website.
Reboot the phone after you make changes and still doesn’t work.
You can also reset it
Settings > System > Reset options > Reset Mobile Network Settings