Praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Nail polish is an adornment that a woman is allowed to wear for her husband, and not in the presence of non-Mahram men. However, during ablution water needs to reach the nails, so it isn`t possible to perform 'Wudu (ablution) with nail polish on. Therefore, it isn`t valid to make Ghusl Jnabah (Ghusl performed after sexual intercourse or ejaculation), Ghusl after menstruation and Ghusl after Nifas (blood of childbirth) while wearing nail polish. And Allah The Almighty Knows Best.