Stop your Mac display from sleeping. Use the in-browser wake lock, or adjust your settings with the steps below.
Ready. Choose a duration and press Start.
macOS dims and sleeps the display based on your Lock Screen and Battery/Power settings. Adjust these or use a browser wake lock per task.
The tool above works in Safari and Chromium browsers that support the Screen Wake Lock API.
Go to System Settings → Lock Screen.
Increase 'Turn display off when inactive'.
Or press Start above to keep the screen on in your browser.
System Settings → Lock Screen, and Battery/Power for more options.
Yes in current Safari and Chromium browsers.
Amphetamine and caffeinate exist, but the browser tool needs no install.