You have two effective ways to eliminate the duplicate title: If you're serving the page using Flask, Django, or a static file, locate the HTML file and either:
Remove the tag entirely
html
blah Or leave it empty: htmlOption 2: Override the HTML Title Using JavaScript Injection If editing HTML is not ideal (e.g., content is dynamic or external), inject JavaScript via webview.evaluate_js:
python import webview
def clear_html_title(): webview.evaluate_js("document.title = '';")
webview.create_window( "blah", f"http://localhost:{port}", width=1400, height=900, min_size=(800, 600), on_top=False )
webview.start(clear_html_title) 🔎 This executes JS inside the loaded page after rendering, clearing the internal title that WebKit uses. and Make sure you're using the latest version of pywebview to avoid outdated platform quirks:
bash pip install --upgrade pywebview Or check version:
python import webview print(webview.version)