This doesn't have much to do with Islam as much as just a mishmash of ultra-nationalism / pseudo-populism / authoritarianism. It's the same class of rules like Putin, Chavez, Trump. Usually these start with a group of people who are ignored in one way or another, or aren't in the good situation that they once were, but then a viable leader comes and speaks to their worries, and promises a better future. This leader represents some kind of identity characteristic that has been shunned in that society (islamist / not politically correct / strongman authoritarian / xenophobe), which draws the ire of everyone else and is criticized heavily in the media. This adds to their popularity among their supporters, overall polarization, and the collapse of sane political discourse, which gives them a better chance. Then it's all about "give them a chance", and after they get elected, sooner or later, they turn authoritarian when things get tough. They blame foreign countries for every problem they have, etc. Eventually they remove the separation of power, replace powerful government positions with their own people, solidify support among their base, and change laws to make competition harder. It happens so often that I get tired of seeing it over and over.