Skip, are we talking acoustic or electric?
Recording acoustic guitars some form of microphone and recorder is required, whether a smartphone, handheld (portable) recorder or a microphone, digital audio interface and a computer. The quality of the sound will depend on the sound of the guitar, the room, the quality of the mic and the recording process. Electro-acoustic guitars give the possibility of capturing the acoustic sound, the electric sound or a blend of the two.
Recprding electric guitars can be done either by putting a mic in front of the speaker or by plgging in direct, bypassing amp and speaker.
The photo above shows me 8 years ago. Spot the acoustic traps to dampen the unwanted reverb in the room that gives recordings a boxy sound. I use two mics, one to capture the crisper sound from the neck and the other the warmer sound emanating from the body.
We are blessed with quite a few on the forum with plenty of experience of recording so you should be able to gauge what might be the right path for you to follow from the many different experiences and suggestions.
In the meantime, perhaps you could tell us a bit more about your current guitar, room, how you record and describe what it is that you feel you are struggling with.