The Safavids were a Shia Kurdish dynasty from Iranian Azerbaijan. To keep Iran Sunni, all you need is for the Safavids (or some ATL equivalent) from taking power.
https://en.wikipedia.org/wiki/Safavid_conversion_of_Iran_to_Shia_Islam
Meanwhile, have the Nottomans be a Shia Turkic dynasty from...