Your attention is under pressure
You're not imagining it. In studies by Gloria Mark at UC Irvine, the average time people stayed on one screen at work fell from about 150 seconds in 2003 to about 47 seconds in more recent years. After an interruption, getting fully back into a task can take close to half an hour.
Here's the honest part: about half of those interruptions we start ourselves. Apps and feeds are built to pull us from one thing to the next, and our habits do the rest.