If it is done at home then it is permissible. However, it is best not to do that just to be safe as some scholars interpreted it to be prohibited whether it was done in front of non mahram or alone.

A sister asks. She ties up her hair at home, and once she ties it up and puts on her Hijab for Salah, it resembles the camel hump. Is she allowed to pray in a camel hump Hairstyle at home?

Women clothing |