If you want to block social media apps from yourself, there are dozens of apps and tools you can use, including Freedom, StayFocusd, and RescueTime.
To block pop-ups on a Samsung Galaxy S10, you'll need to open your web browser's settings menu, or delete malicious apps.