The brain just like with its sleep wake cycles that entrain to a regular schedule that is your brain and body get used to being active and inactive at particular times based on your exposure to sunlight your exposure to activities your social rhythms etc. If you regularly, meaning for the course of about three days, make it a point to focus and study at particular times. Again, pulling your attention back.
It's not an automatic process, but pulling your attention back to a specific location, perhaps on a page or that you're listening to in a lecture, your body and brain will start to entrain to that rhythm such that you will be able to focus and attend better simply by virtue of the regularity of the timing of the exposure to the material. Okay? So, you probably need about 2 or 3 days to break into a regular schedule of focusing and attending and studying at a given time or times.
Allow yourself that transition period, but then make it a point to schedule those times to study. Set aside your phone. Tell people you're going offline.
Turn off the Wi-Fi if you need to or have to. You may need it for your studying. I don't know.
Depends on what you're studying. But limit distractions at all costs and learn to just focus on the material. And this is a skill.
This is the most important thing to understand. It's a skill to be able to focus and study. And it's a skill that you can learn very quickly, especially if you schedule it for regular times and you give yourself two or three days in which to adapt to those schedules and times and then try and stick to them as regularly as possible.
Keeping those regular times will entrain your nervous system to study and learn at its best at those particular times.