You can refuse to use software that does it.
If they force their spyware into Android/iOS you are running out of options.
Like others said: this is implemented on operating system level, locally.
There isn't much escape other than using messengers which encrypt the data locally. Geogram radio is doing this.
If they force their spyware into Android/iOS you are running out of options.