.
There are many wallets out there, not just electrum, where you can trust that your funds will be safe. They usually prefer hardware wallets, which are the most secured wallets. Although electrum is a very trusted wallet but it is also more vulnerable to hacking compared to hardware wallets.
If you say hacking do you mean the entire wallet software been compromised, i would say it is the same in almost all self custodian wallets. The only thing that makes hardware wallet edges electrum is the ability to stay offline and the electrum can also serve same purpose, you only need to accurately airgap it and it serves same purpose.
Electrum has been around for a long term and is open source.
It is not about longevity but how you deal with vulnerability, they were wallets that started well as open source and today they are not much recommended, because they didn’t deal with the vulnerability well. Electrum also faced some but cope well as newer versions come out.
I've been using Electrum for several months, and so far it's been good, and I haven't faced any problems with it, as long as you have the private key to the address you created there. All I can tell you is that when you use Electrum on the desktop and it notifies you of updates, you should update it.
Be wary of just any updates notifications you get try as much as possible to download from the main site and also verify it. The beauty of this forum is once the version is available you will see it here because the developer is here.
In addition to that, it is more advisable to use electrum on the desktop. It is not saying that it is not good to use electrum in mobile apps; it still depends on you how you trust it.
Virtually every wallet that has both the desktop version and mobile, the desktop version is always better because of the convenience and other features. Like electrum you cannot have some features and it is not even available on IOS, I will prefer a BlueWallet on mobile due to certain features than electrum. But it is best to use electrum on airgapped desktop and probably have a watch only wallet of it on mobile