On the blockchain site, when we enter the hash, it says that it is pending
Pending as in it sees it and it is unconfirmed, or pending as in it doesn't see it at all and is waiting to hear about it?
If Electrum says it is local, but a blockchain explorer sees it but it is unconfirmed, then it sounds like it has been dropped by some nodes due to the fee being too low. The server your Electrum client is connected to has dropped it, but the blockchain explorer hasn't. Or perhaps the blockchair explorer has also dropped it and doesn't see it at all.
Either way, what I would do is the same: Simply delete the local transaction from Electrum, create a new one with a higher fee, and then broadcast this new transaction. It won't matter if your old transaction is opted in to RBF or not - the Electrum server you are connected to which has already dropped the old one will accept the new one and should have enough connections with other nodes running default limits or running full RBF that it will propagate sufficiently to be mined. If not, then share the TXID here and we can help.
Just have your friend right click on the local transaction in Electrum and select delete. Then make a brand new transaction as they normally would, but with a higher fee. Use the fees box on this page to select a reasonable fee:
https://mempool.space/