The governing body of a municipality by ordinance may:
(1) prohibit a person who does not hold a license issued under this chapter from establishing or operating an assisted living facility within the municipality; and
(2) establish a procedure for emergency closure of a facility in circumstances in which:
(A) the facility is established or operating in violation of Section 247.021; and
(B) the continued operation of the facility creates an immediate threat to the health and safety of a resident of the facility.