Your bedroom environment plays a major role in your ability to fall asleep and stay asleep. Your bedroom should be cool, should be clean, dark and quiet.
The main reason that you need to stop screen time 30 minutes before going to bed is that your brain needs to relax. You need to give it some time to wind down. So, you need to start dimming the lights, you need to turn off your TV, you know, turn off your phone, so that that bright light or any sound coming from those devices doesn’t cause your brain to be stimulated.