There's a (somewhat vague) theory that once the electorate starts to believe the political system is corrupt, it is more likely to vote for an outsider (someone who hasn't had a long political career) in a major position of power (e.g. presidency).
It has been offered for example to explain Trump's election (including him winning the Republican party nomination), but surely it can be applied elsewhere, for example to Zelensky's election as Ukraine's president, or to the more recent election of Saied in Tunisia.
The problem I see however is that on quite a good number of [objective] measures, Ukraine is a lot more corrupt than the US. Therefore, if the theory that an image of systemic political corruption makes the election of an outsider more likely, it would probably have to rely on a fairly subjective (i.e. perceived) measure of corruption. So, the question is then: what would be the [subjective] measure of corruption that best predicts the election of an outsider? Are there any empirical studies on this matter?
(As an interesting related fact, there's a 2005 paper on US politics that found that the word "corruption" evokes two different things in the mind of different US voters [depending on their socioeconomic background]: lawbreaking vs. favoritism, with the less well off being more inclined to ascribe corruption to the latter phenomenon as well, whereas it was "just politics" for those better off.)