I think in reality, preparation for STEM takes years. It helps to have an education that fosters interest at a young age as well. I am specifically questioning the priorities of the US's view of education. As I said, we rely heavily on H1-B and have very large foreign populations in STEM degrees. Social media may not be the cause. What matters is that there clearly isn't early interest. Early interest translates to having more graduates. As I posted elsewhere, there is a clear difference in what degrees foreign students pursue in the US (more STEM) versus what US students pursue. This seems like a difference in values that I think we should examine.
On the other hand, more focus on STEM education broadly would translate to higher enrollments and self reliance. This also assumes that out performing immigrant families assimilate. Non-assimilation would exacerbate the bifurcation.
When I was 12 all my friends wanted to be rock stars or professional skateboarders. I seriously doubt the causation between what children want to be in the age group of 8-12 and what they grow up to become.