The heart is, by definition, that which turns (hence the Arabic word for heart ‘qalb’ comes from the root which means ‘to turn’). The heart, by definition, is that which turns.
How do we not let our heart change or turn ?
Answer is in the Du'a
Ya Muqallib ul Quloob Sabbit Qalbi 'Ala Deenik