In the past, automation did contribute to growth, but the number of jobs created was always much smaller than those eliminated. Most of the jobs that were created were as a result of a steady rise in global consumption for decades. As just about every nation's population is aging (less kids per capita) and the last large generation is beginning mass retirement, global consumption has not only stopped growing, it will start retracting. Fortunately for us, the US and Mexico baby boomers actually had a lot of kids relative to most other countries, so we should be much better off over the next couple decades than most of the world.
For decades, the rate of automation was slowed dramatically by shipping manufacturing overseas to stable countries with the lowest wages. This trend is stopping for a couple of reasons; in many manufacturing sectors, automation is about to become cheaper than the cheapest labor and, just as importantly, globalization is dieing and manufacturing is becoming more regional. In the next couple of decades, manufacturing in the US and Mexico will skyrocket.
Automation used to happen slowly, to a couple of sectors at a time. With global consumption shrinking, manufacturing shifting to regional, rather than global, and with automation affecting almost all fields at once instead of a few at a time, the rate of automation is dramatically increasing. Those that clung to the idea that automation creates more jobs than it replaces are in for a rude awakening very soon. The US and Mexico will be somewhat insulated against this over the next decade or two, but gen Z and the following generation will face bigger challenges that we ever did.