The Buckingham Palace web site has listed a link for people who want to send an online message to the Royal Family.
See below. (From the Buckingham Palace web site)
QUEEN ELIZABETH II
1926 – 2022
For the latest information and announcements from Buckingham Palace, and to send an online message of condolence, visit the Royal Family website at www.royal.uk.