It took three days for Hong Kong Chief Executive Carrie Lam to change her mind and don a surgical mask in public, marking a shift in the government’s policies on containing a deadly virus outbreak that has refocused protesters.

Since the coronavirus landed in Hong Kong in early January, protesters have increasingly sought to focus on the government’s management of the crisis.

Mrs....