A residence which is determined to be nonconforming within the zoning district in which the residence is located may be continued and is exempted for the provisions of these sections. However, a pre-1976 mobile home which [has been] replaced most [must] comply with current codes.