That's not true. Wages have generally outpaced inflation as long as we've measured inflation properly. Up until the early 1970s this was very palpable, since the early 1970s the delta has been much lower, wage increases have been very slightly above inflation.
Why does it feel different? 1: the amount of stuff we buy has increased a lot. Anybody who owns what would be considered solidly middle class in the early 1970s will feel quite poor today. 2: financial security is way down.
In the early seventies a middle class family of 6 would own a 1200 square foot house, a single car, a single TV and a single radio would be the sum total of the entertainment electronics they owned, they'd have less than a dozen outfits apiece, they'd eat out about once a month, a vacation to a neighboring state would feel like a splurge, et cetera.
But they were relatively content. 1: they were much better off than their parents and grandparents, who experienced the depression & WW2. 2: they were "keeping up with the Joneses". 3: they had a feeling of financial security due to job security and the fact that serious health events were unlikely to financially devastating.
And in the 1870s the average middle class family wouldn't have owned nearly the same variety of finished wood and metal products. Industrialization changed that.
You can't just say "but iphones" to hand wave away huge changes in the big items of a family's budget.
The amount of junk in my house is astonishing when compared to what was in the small house I grew up in.
Average American household budgets are dominated by housing, transportation and taxes.
Maybe some of that problem is about spending too much money, but it cannot be denied that housing are unaffordable and that transportation is inefficient and is a mess.