Ionic & Capacitor & PWA : adjust luminosity

Hello, I have an Ionic 5 app, which uses capacitor.

I want to be able to control the brightness on the app.

When I’m on an android or ios app package, this library (which requires cordova) works fine :

On the other hand, when I’m on an Ionic PWA app (on browser), I can’t find anything to do that.
Any idea ?