Not sure if you're already on any meds, or have been given any sort of diagnosis, but drugs like Adderall (for me specifically Vyvanse) really help the mental fog. It's wild how effective it is.
Don't listen to the drug addicted burger. Drugs will only temporarily boost your concentration until you're faced with the task of navigating around the no drug issue.
Don't be stupid. Go outside. Get off the internet, figgit
I find if I am enjoying something then I can concentrate for longer. That said, most of the time I pick up my guitar I just randomly noodle and make strange noises rather than practice.