Apps to replace mindless scrolling with learning?

I wanted to stop wasting time on my phone by randomly scrolling on apps. I wanted to see if there were any good apps you guys use to instead learn concepts like system design or some basic leetcode to replace TikTok, Instagram, etc?