In the exercise of any of the powers and duties conferred by law, a governing body of a political subdivision of the state, or any planning or zoning agency thereunder, may regulate the occupancy or location of dwelling units in such a way as to effect the reasonable regulation of mobile homes. Such regulation may exclude mobile homes from residential-use districts and restrict them to mobile home parks or mobile home subdivisions.
NMS § 3-21A-4