On Friday, police received a report of an offensive tweet about Captain Sir Tom Moore, who died last Tuesday.
Since, a 35-year-old man has been arrested and charged in connection with communication offences.
The individual is due to appear at Lanark Sheriff Court on Wednesday, February, 17.
The charity fundraiser and war veteran died in hospital at the age of 100 after testing positive for Covid-19 following treatment for pneumonia.
Sir Tom's fundraising efforts raised more than £32 million for the NHS, walking 100 laps of his garden before his 100th birthday during the first national lockdown in April.
In acknowledgement of his efforts, he was knighted by the Queen during a unique open-air ceremony at Windsor Castle in summer 2020.
His fundraising efforts were marked during the New Years drone display in London, as his figure appeared over the O2 Arena.