Discuss with your doctor that’s prescribing your ADHD meds. It’s quite possible another medication or a different dose will work better.
I can only say that I had a very similar issue with concentration at work while WFH and getting on medication resolved it.
The problem for them is those aren’t things you can buy.