What is the meaning of 不同而不同?
No, here the real pattern that you should focus on is “依[A]而[B]&quot;, which means &quot;according to A, B is/does...&quot;,remember 依 means &quot;according to, based on&quot; here. So your example means:

The tastes are different, according to differen ingredients.
Or you would say, The tastes of different ingredients are different.

Another example:

单价依采购量而定。 The unit price is determined based on the purchase quantity.