Electrum, bluewallet or sparrowwallet...as long as you are using a wallet that is open source and a non-custodial wallet are all equally secure wallets. But I think comparing them and assuming they have the same level of security as hardware wallets is not entirely accurate because hardware wallets will at least always be offline and that's what m akes it more valuable.
You can run electrum on an airgapped device and have the same security as a hardware wallet.
Without running a full node, the electrum wallet is non-custodial and uses hot storage for safeguarding Bitcoins.
You can use electrum as a cold storage and that has nothing to with whether you are running a full node or not.
Yeah obviously Electrum is a good wallet, no doubt about that, but it requires one to keep the app on a device such as a smartphone or a computer to run and use the wallet to make transactions, and any app that is stored on a device can be compromised and attacked by exploiters using malware, viruses, and other stuff that they use to steal people's funds.
Assuming you are using electrum as a hot wallet, you are right. Any online device is always prone to hacking.
But as I already said, you can use electrum on an airgapped device and be completely safe.