If you use graphic trademarks to make things, then the shape of the product you are talking about should be related to the shape of the trademark, right? For example, McDonald's trademark "M", now he has made an M-shaped food packaging box, which is similar to his trademark, but he is not using a trademark here, but using a logo, which means that copyright issues are involved, not trademark issues, and whether infringement should not be considered from the trademark. If other manufacturers produce the same M-shaped packaging box, there is no infringement of copyright, so there is no infringement.
Let's talk about patents again If McDonald's applies for an appearance patent, even if someone else changes the trademark, it is infringement. Even if the text on the box is different from the local pattern (trademark), the shape and characteristics of the product are the same, which belongs to the protection scope of its patent.
We can see in life that the same knife can be made by different manufacturers with different trademarks, which is not infringement, because the knife is a well-known technology and everyone can use it. However, if a novel knife shape is designed and a patent is applied, then copying by others is infringement.
Regarding the difference between patents and trademarks, it should be noted that patents protect technology, while trademarks face consumers, allowing consumers to distinguish different products.