A new pet food should always be introduced gradually, even if your pet appears to like the new food. This will help reduce the chance of a stomach upset following a food change.
Changes to diet affect different pets in different ways, so it is important to manage the change carefully. Some will be changing foods because they’re transitioning into a new stage in life - puppy/kitten to adult food or perhaps a new food has been recommended to help manage a health condition. For these pets it is important to follow the advice given by your veterinarian.