ionic install copycliboard for browser code example
Example: ionic install copycliboard
# capacitor:
npm install cordova-clipboard
npm install @ionic-native/clipboard
ionic cap sync
# capacitor:
npm install cordova-clipboard
npm install @ionic-native/clipboard
ionic cap sync