diff --git a/templates/partials/logo.html.twig b/templates/partials/logo.html.twig
index 867cb6c..e788f2c 100644
--- a/templates/partials/logo.html.twig
+++ b/templates/partials/logo.html.twig
@@ -1,4 +1,4 @@
-{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
+{% set logo = theme_var('custom_logo_mobile') ?: theme_var('custom_logo') %}
{% if logo %}
{% set logo_file = (logo|first).name %}