diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb
index b2b4dc447..34c1d7a7a 100644
--- a/app/views/layouts/default.html.erb
+++ b/app/views/layouts/default.html.erb
@@ -23,7 +23,7 @@
<%= javascript_pack_tag "application" %>
<%= stylesheet_pack_tag "application" %>
- <% if CurrentUser.user.custom_style.present? %>
+ <% if CurrentUser.user.custom_style.present? && params.fetch(:css, "true").truthy? %>
<%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %>
<% end %>
<% if Danbooru.config.twitter_site %>