First of all, you still do not know how to differentiate Bitcoin addresses.
1. Any address that start from 1 are P2PKH (legacy) addresses
2. Bech32 addresses starts from bc1, they are referred to as native segwit
3. P2SH addresses which are nested segwit start from 3.
4. Also segwit addresses starts from 3. But, you using the wallet will know if your address is a segwit address.
Know that you can not generate one address type from another, it is not possible. But if the seed phrase is BIP39, just import it on electrum, it should be bech32 by default, but if not, go to setting to choose m/84'/0'/0'/0/0 derivational path, this will give you bech32 addresses.
If the seed is BIP39 and not yet supported by electrum (but definitely it should work), you will need to input the seed phrase on iamcoleman converted, it has to be done offline for security and safety. It is a converter that can help you to use the seed phrase to generate the derivation path for legacy, nested segwit and bech32 addresses. All you need to do is to use the tools for it to generate what you want by inputting your seed phrase on it offline.
I am thinking you are using wallet that only support legacy address (like atomic wallet), you can just use the iamcoleman too to generate the derivation paths, check for BIP44 and check if your address from the formal wallet is there, if there, then press on BIP84, import the master private key of BIP84 on electrum. This should work also.
I think with a package to decode in Base58
We receive ripemd160 hash of a Bitcoin address
python -m pip install base58
Here below is simple way to get the ripemd160 hash of a bitcoin address coded in base58 (python 2.7):
>>>import base58
>>>adr58 = '1Q2TWHE3GMdB6BZKafqwxXtWAWgFt5Jvm3'
>>>adr160 = base58.b58decode_check(adr58).encode('hex')[2:]
>>>print (adr160)
fc916f213a3d7f1369313d5fa30f6168f9446a2d
And then if ripemd160 hash is known: fc916f213a3d7f1369313d5fa30f6168f9446a2d
You can encode in
"Bech32 (P2WPKH)" and get a Bitcoin address with the prefix
bc1q********************