Not sure if anyone in here is familiar with an app called 'Opal' for focus. You can customise which apps on your phone and mac get blocked each day.
For example i'm locked out of: IG, FB, Youtube and all the other distracting apps until 4pm each day on both devices.
You can set daily focus blocks and once they start you can't reopen, its a fucking game changer.
Been using for about a year now and it turns you into a beast - Just wake up and work, no distractions.
Pay a yearly subscription (just say your a student and they should give a discount)