With the guitar plugged in.... turn the volume pot of the guitar all the way down.
Does the hum disappear? If it does, it is airborne interference. If the hum stays, you may have a ground loop (lots of info online about those).
If it's airborne, try the following:-
1. Move to different parts of the room where you play with your guitar. Face the guitar in different directions. Hopefully something obvious will strike you that could be the cause of the hum. You might find you can face a certain way to play / record and suddenly your problem is tollerable.
2. Investigate obvious sources of airborne interference. These can include:-
Fluorescent lights / old style energy saving light bulbs. New style LED bulbs tend to be OK (or I've had good luck anyway!)
Dimmer switches. Especially cheap ones. Replace with on / off switches or play in the dark!
Computers (some motherboards are ridiculously noisy because of how they do power throttling to save energy. Works great for the environment but unfortunately can really upset guitar pickups
Computer monitor
Some 'brick' / wall wart chargers
3. Investigate things in other rooms. It's possible for a fridge that is 'electrically noisy' to put a bunch of buzz onto the mains in your house. Then every other wire in the walls acts like a transmitter. There are clean plugs you can get which you can plug the offending appliance into to try and help with this.
There are many possibles. Hope you find what the issue is as hum can drive you nuts.