Having nail polish is permissible during the prayer if it was applied after wudhu or ghusl. It prevents water from reaching the nail so it invalidates wudhu or ghusl if it was applied before performing any one of them. It can be applied on some of the toes that are not wiped during wudhu.