The most reliable, official, and permanent way to remove the Apps Script banner is to run the script from a paid account (formerly G Suite) rather than a free @gmail.com account.
🛠️ Option 1: Use the Google Workspace Developer Sandbox (Completely Free)
function doGet(e) let htmltemplate = HtmlService.createTemplateFromFile('index'); htmltemplate.params = JSON.stringify(e.parameter); htmltemplate.sessionid = Utilities.getUuid(); let html = htmltemplate.evaluate() .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL) .addMetaTag('viewport', 'width=device-width, initial-scale=1'); return html; The most reliable, official, and permanent way to
If you only want to hide the banner for yourself or a small group of users who are willing to install an extension, you can use a browser-based CSS injector .
While this message helps protect users from malicious scripts, it can make professional applications look unprofessional, particularly on mobile devices where the banner causes scaling issues. Set the "Who has access" setting to "Anyone
Set the "Who has access" setting to "Anyone with a Google Account" or "Anyone." While this doesn't fully remove the banner, it sometimes reduces the intrusiveness of the warnings compared to limiting access only to members of a specific workspace.
For a permanent solution that doesn't involve workarounds, you can link your script to a verified . Key findings from the Qiita article reveal that:
Create a simple HTML file (hosted on GitHub Pages) that contains an pointing to your Apps Script URL.
Key findings from the Qiita article reveal that: "unpaid Google account users cannot directly remove this banner, but if you display the web app (child) inside an IFrame on a normal page (parent), you can suppress the banner display."
Host your HTML/CSS on a platform like GitHub Pages, Vercel, or Netlify.