Is it infringement to change the appearance patent?

It depends on what kind of patent you have.

If it is a design patent, it protects the visual effect of the appearance, and others will not infringe upon it if they change the appearance.

If it is an invention or utility model patent, it can protect the internal structure, even if the appearance changes, it may be infringing.