diff --git a/templates/problem/problem.html b/templates/problem/problem.html
index 9fb3444..a55a8a2 100644
--- a/templates/problem/problem.html
+++ b/templates/problem/problem.html
@@ -1,4 +1,7 @@
{% extends "common-content.html" %}
+
+{% set has_hidden_subtasks = request.in_contest_mode and request.participation.contest.format.has_hidden_subtasks %}
+
{% block content_media %}
{% include "comments/media-css.html" %}