(a) It shall be unlawful to locate or occupy a mobile home until the building inspector has issued a building permit or occupancy permit for such mobile home, which permits shall not be issued unless such mobile home meets the construction standards set forth herein and is located in a manner so as to conform with the basic requirements set forth in this chapter and other lawfully adopted codes or ordinances. (b) Mobile homes and cabanas or other accessory structures shall require a building permit.