MADISON, Wis. (AP) — Wisconsin Gov. Tony Evers on Thursday issued a statewide mask mandate amid a spike in coronavirus cases, setting up a conflict with Republican legislative leaders who oppose such a requirement and successfully sued earlier to kill a “safer at home” order.

The Democrat Evers declared a new public health emergency, after his initial one expired in May, and ordered the wearing of masks for anyone age 5 and up starting on Saturday for all enclosed spaces except a person’s home. The new order also applies to outdoor bars and restaurants, except when people are eating or drinking.

Anyone who violates the order would be subject to a $200 fine. It is slated to run until Sept. 28.

The conservative-controlled Wisconsin Supreme Court in May tossed out an order from Evers’ health secretary closing most nonessential businesses in an attempt to slow the spread of the virus.

Evers has repeatedly cited that ruling as a reason for his reluctance to join 32 other states that have mask mandates. However, the May ruling determined that the state health secretary overstepped her authority with the “safer at home” order; the court did not address the governor’s power to issue public health emergencies.

The state’s high court was controlled 5-2 by conservatives when it struck down the earlier order on a split 4-3 decision. But on Saturday when the mask order takes effect, Justice-elect Jill Karofsky joins the court, narrowing the conservative majority to 4-3 and increasing the odds of the order surviving a legal challenge.

Republican legislative leaders brought the earlier lawsuit. While they oppose a mask mandate, they have stopped short of saying whether they would sue if Evers enacted one.

Absent a statewide mask order, cities and counties across the state have been taking action on their own. Milwaukee and Dane counties, with Wisconsin’s largest cities of Milwaukee and Madison, were the first to make masks mandatory. Numerous other cities, including Green Bay, Racine, Superior and Whitewater have followed suit. Appleton this week recommended people to wear masks, but did not mandate it.

Evers’ order doesn’t pre-empt local governments from enacting even stricter ordinances.

Evers had been under pressure from local governments, and even some Democrats, to issue a statewide order. Democratic state Sen. Chris Larson, of Milwaukee, started a petition for a statewide mandate.

Wisconsin has had more than 51,000 confirmed cases of the COVID-19 virus and 911 deaths as of Wednesday. That death count is the 28th-highest in the country overall and the 35th highest per capita at nearly 16 deaths per 100,000 people. Over the past two weeks, the rolling average number of daily new cases has gone up by 90, an increase of more than 11%.

The virus, although still heavily concentrated in urban areas, also is spreading to more rural counties that had largely been immune from the coronavirus pandemic.