The best way to avoid procrastination is by removing anything that could potentially distract you. This includes things such as social media apps, video games, reading, eating, and sleeping.
Directly going cold turkey is unreasonable for most people, so you start by making it a hassle. An example would be using a program to ensure that every time you try to open an app, you need to wait a full minute.