diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 391526f0a30e1..3db38d60fa1d3 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1544,6 +1544,14 @@ h4 > .notable-traits {
left: 0;
top: 100%;
}
+
+ /* We don't display the help button on mobile devices. */
+ .help-button {
+ display: none;
+ }
+ .search-container > div {
+ width: calc(100% - 32px);
+ }
}
@media print {