Ionic install plugin to specific platform

in my case, i want to install the different version for each platform
Ios: plugin v1 and android: same plugin but v2
who can I apply this?