Coconut oil left on your hair would be considered a
chatzitzah since it would form an oily barrier between your hair and the mikvah water. You may use conditioner on your hair during your mikvah preparations, rinse it off well, and any coating that remains (protecting your hair) would not be considered a
chatzitzah.