Anyone else having this problem? If I am on the internet,either by Wi-Fi or network, and am getting low on battery power and need to plug it in, every single time I try to charge while online, my online access ceases. I will simply have no internet connection.
I would also swap out your cable, and make sure it is snug. Not damaged or dirty.
What app(s) are you using to get on internet?
Clear it's cache in Setting Apps app_name Storage, and in the app's built-in settings
If not using Samsung Internet give it a try and enable extensions for ad blocking.
If Chrome or others check what extensions.
It would be nice to know if anything is running a task that shouldn't be there or that is too high.
If not using Adguard.com VPN consider that.
Public WiFi is generally not to be trusted without a VPN and other security steps.
Assume it's 9.0. After a major OS update clearing cache or factory reset helps.