This.
Developers aren't the ones making those decisions.
Try telling management that you don't need one team of devs but 6 instead (one each for the Windows, Mac, Linux, Android and iOS apps plus webapp), because you don't just want to make one electron app that runs everywhere.
I am working on the backend for the apps for a large retailer. Since it's an old app, we do have dedicated Android, iOS and Web apps. Since it's a retailer, we at least don't have to have Windows/Mac/Linux apps.
We have three separate frontend teams with about 20 people in total, because we essentially have to run three separate app projects. Since Android, iOS and Web have so hugely different tech stacks, there's pretty much nothing that's shared between these three apps. One's made in Kotlin, one's done in Swift and the website is in Typescript.
Senior management demanded that we cut some FTEs and fired the app team members for Android and iOS responsible for the ecommerce part of the apps and told us to instead use a webview. Now the other app devs are just waiting to get fired too once upper management figures out that the whole app can just be a webview.
Don't tell us we devs are lazy or don't know how to do our job. Complain about upper management that doesn't want to invest into a real solution.