Don’t have those apps on your mobile devices and block them with your hostfile on desktop. If I really want to check something I have to modify the hostfile and I always put the site back in when I’m done.
But each person responds differently to these types of measures. You’ll probably find a few recommendations here so try all of them and see which is the most effective for you.