Is it mandatory to respond to a written Salam online?

Technically it’s not mandatory. However, if not doing so will insult or hurt a fellow believer, then it will be haram not to respond.