Programmatically App Icon change (dinamically by user interaction)

Hi, I’ve seen that Deliveroo app can change the App Icon through user selection inside the app and I was wondering if anything similar will be possible with Cordova or Capacitor.

About iOS I’ve found an old Cordova plugin but I cannot managed it to work:

For Android I just found a bunch of StackOverflow pages:

Nobody else has dealt with this? Am I doing this wrong and there is a much simpler way or is it such a peculiar request that so few devs have faced it?

Thanks to everybody and hoping to find someone to, at least, share the struggle with. :smiley: