Two ways:
1. Social media companies go bankrupt so people get their political ideas from talking to others not echo chambers on social media. Since many lopsided counties this would take time and wouldn't happen right away.
2. Social media companies get taken over by someone who sees this as a problem and changes algorithms to direct people to those with alternative viewpoints, not more extreme but on same side like you see now.
I mean, Elon Musk is driving Twitter to the ground and social media in Western countries is increasingly being seen negatively. The country promoting social media the most is China, which is using Tik-Tok to promote its agenda(even though most content on Tik Tok is apolitical), including pretending to care about Palestinians.