Sometimes you just need to record your electric guitar fast and this is the fastest and cheapest way I know using your smartphone with a 3.5mm to 6.3mm jack adapter.
You don't need an amp just your electric guitar, a guitar lead, your smartphone and this cheap little adapter.
USA link
https://amzn.to/3GWt5WG
UK & EU link
https://amzn.to/3mQS6KV
3.5mm Stereo Jack Plug to 6.3mm Stereo Socket - Gold
3.5mm Stereo Male / 6.3mm Stereo Female
Often used to enable the use of a headset with a 6.3mm jack on a device with a 3.5mm socket
Guitar lead adapter 3.5 to 6.5