Canvas resizing without scaling the contents

Hello everyone,

Newbie here. I am trying to achieve what has been discussed before at this link for the pen here.

Currently the content gets scaled down in smaller screens (like mobile) and it is really hard to see the lines and the interaction. Maybe no scaling as in the discussion above is the solution but I am not sure how I can implement it since what I have tried based on the discussion didn’t work.

Would be happy to get your help.