(i) No by-law passed under this paragraph that prohibits or regulates signs or other advertising devices, applies to a sign or advertising device that is lawfully erected or displayed on the day the by-law comes into force, if the sign or advertising device is not substantially altered, and the maintenance and repair of the sign or advertising device or a change in the message displayed shall be d