@Maximiliano Gibert Thanks for your response. You cannot have two different versions for the same logic app, you need to create separate the logic apps based on the environment.
One way to achieve this is by create a devops pipeline to deploy to make the changes to different environments. if you are making changes directly to the designer then it is not possible, and you need to manually export and import it again to different.
Refer to this documentation for more information about deploying logic apps in different ways.