You're seeing a preview that doesn't run this app's code — common on iPhone when a file is opened from Mail, Messages, or Files.
On iPhone/iPad: in the Files app, touch and hold this file, choose Share, then look for Open in Safari (scroll the row of apps if you don't see it right away). Opened that way, everything works normally.
On a computer or Android phone, just double-click or tap the file as usual.