That's exactly what the US and Israel were doing in Iran.
This is why they tried to foment a movement to install a king currently living a playboy lifestyle in America with Israeli money.
Ultimately it failed because it stopped being able to coordinate and the carefully built agitator networks who exposed themselves are now getting rolled up.
America doesnt have a monopoly on messing with the electorate in this way as we discovered during jan 6th, the manufacture of antivax movement and (most humiliatingly) the arrest of the the presidential front runner in Romania because of a couple of tiktok adverts.
If, in the liberal democratic west, we dont want our own internet to get locked down china/russia style and our elections to get canceled, as people living in internet glass houses maaaaaybe we shouldnt be throwing quite so many stones.
As someone not from the west, I can relate to your viewpoints. While Iran and Venezuela, for example, may be flawed democracies, the west forgets that those who came to power there did so after a popular uprising and revolution. And just because the west doesn't like the current leaders there (for asserting their sovereignty on economic affairs), I am often bemused by the lack of political understanding of many westerners here who think just because Iranians are disgruntled at their current rulers, they are waiting to welcome the son of a despot ruler who they overthrew once, who has lived most of his life abroad, and urges foreign countries to invade his country so he can be the ruler of Iran again! The same with Venezuela too - however pissed of the Venezuelans are the current government, no Venezuelan is going to welcome the current Nobel peace prize winner, a right-wing politician who plans to privatize the energy resources of her country so her family can get back the "rights" that she believes was "stolen" from her, especially when she too urges foreign countries to invade her country.
I do subscribe to the view that politicians like these, who seek the help of foreign powers to come to power, are definitely traitors to their country. Inviting foreign powers to meddle in your affairs is how civil war erupt and lead to the eventual breakup of a country.
This is a wild take about a clearly popular uprising where the authoritarian government had to kill the internet. Watching people jump to defend a theocratic regime because "America/Israel" bad is crazy.
Not everything that happens in the world is because of Israel, believe it or not.