If each version of the path is constant in Test and Prod, then you could make the path attribute dynamic and supply the value from the diagram rather than hardcode it in App Modeller. In the diagram you would have a decision to decide which path value to use. And you could also have an Environment Variable called 'Environment Name' with a value of Prod, Test or Dev.
Alternatively, you could have more than one version if the same element in App Modeller, ie one for Test and one for Prod. Then use a Wait stage with 2 conditions, one for 'Check Test Element Exists = True' and the other for 'Check Prod Element Exists = True'. If the path flows along the first condition then you use the Test element, if it flows along the second, you use the Prod element.