Whenever we are working with multiple AEM versions, use dedicated browser for the 2 different AEM versions.
Incase of issues, just clear the cache and use this browser for a specific AEM version.
As AEM upgrades, so will be various libraries, which can give unexpected ossues.
Aanchal Sikka