<% content_for :body_class, "#{ @colour }" %>

<h1>
  <%= (@team_name.upcase == @team_name || @team_name.downcase == @team_name) ? @team_name.upcase : @team_name %>
</h1>

<% content_for :body_class, "#{ @colour }" %>

<h1>
  <% @team_name = @team_name.gsub(/^(GOV.UK)/i, "\\1<br>") %>
  <%= (@team_name.upcase == @team_name || @team_name.downcase == @team_name) ? sanitize(@team_name.upcase) : sanitize(@team_name) %>
</h1>

Insert a line break after GOV.UK
Insert a line break after GOV.UK

Matches the design of the physical signs