capacitor cross platform code example Example: ionic capacitor platform web if (Capacitor.platform !== 'web') { // TODO }