Stubborn Cradle Cap 🤦🏻‍♀️

Pa

My LO is 7 months old now and she still gets cradle cap every now and then. Whenever I notice it I apply oil on her scalp then wash her head and then again apply some oil. 5 mins after that I brush it off. But just a few days after doing this it comes back 🤦🏻‍♀️. What am I supposed to do to get rid of it? And till when is it going to keep coming back?