Hi
@owisa and warm welcome
👋You can try using members app diagnostic tool under support section first.
Is it wifi or mobile data?
You can do network reset in settings > general management > reset > reset mobile network settings (if its for mobile data)
And reset WiFi and Bluetooth (if it's for WiFi.
Other thing you can try is wipe cache partition on your phone.
Try safe mode on your phone and see if there's no 3rd party apps causing it:
https://www.samsung.com/uk/support/mobile-devices/how-to-start-my-galaxy-device-in-safe-mode/Reset your modem (if its WiFi issue)