Well I know you could lock down an iPhone with restrictions and turn it into basically just a phone (you can keep music and stuff). You just have to either put in a random restrictions code and forget about it then customize the restrictions to a comfortable level. Then you have less of a distraction. Cutting off all social media might not be great since I think connecting with others is essential to stave off things like depression. Just my 2 cents.
See your friends (physically speaking), to get outside, to meet new people, be less lonely at home...