Back when I was young in the 90s, this was exactly how I spent the last 5-6 hours of my days, reading books in my bed until the sun came up in the morning and I actually started getting tired.
Now, I sleep much better, the bed and bedroom is limited to just two activities, sleeping and funtime with partner, otherwise I never just chill in the bed or have anything else interesting in there. And if I can't sleep, I go up again and do something else until I'm tired enough to actually lay down in the bed. Probably helps a ton, as even with the phone on the nightstand next to me, I do fall asleep relatively quick.
What is forcing you to doom scroll rather than putting the phone in a different room before going do bed?
802.11g was good enough for that, no need for 5G.