Is it an infringement to make a slight change to the appearance of the other party's products and then apply for a patent by yourself?

Because the appearance patent is only examined in form, even if you apply according to the other party's appearance and don't make any changes, you will get a patent certificate (referring to the appearance patent), but the other party can apply for your patent to be invalid. So even if you change the small details of the other party's appearance patent to apply, even if you get the patent certificate, it will involve infringement, because your patent may expire at any time.