Common face masks should not be worn for more than 3-4 hours. While breathing moisture and dirt accumulate, which can promote the proliferation of bacteria and other harmful agents.
Do not put a mask on if it looks sweaty or dirty. In such a case the mask needs to be thrown away, or washed.