{"id":16369969,"date":"2026-08-19T23:00:00","date_gmt":"2026-08-19T23:00:00","guid":{"rendered":"https:\/\/wordpress.org\/documentation\/?post_type=helphub_article&#038;p=16369969"},"modified":"2026-08-19T04:24:45","modified_gmt":"2026-08-19T04:24:45","slug":"responsive-styles","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/responsive-styles\/","title":{"rendered":"Responsive styles"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Responsive styles let you give a block different settings depending on the screen size it&#8217;s viewed on. For example, you can change the font size to be smaller on mobile viewports or make padding tighter on tablet viewports. It&#8217;s only included in <a href=\"https:\/\/wordpress.org\/documentation\/article\/block-themes\/\">block themes<\/a> and requires WordPress 7.1 or higher.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can set responsive styles two ways: for a block <em>type<\/em> everywhere it&#8217;s used on your site, or for a single block in one post, page, template, or pattern. Both options allow you to make changes to typography, color, background, border, dimensions, spacing, and layout settings, whether you&#8217;re in the  <a href=\"https:\/\/wordpress.org\/documentation\/article\/styles-overview\/\">Styles panel<\/a> or in an individual block&#8217;s Settings sidebar. What styling options are available depends on what a block supports. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How responsive styles work<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The style you set by default for a block is its base style, and it applies at every screen width unless you override it. Tablet and Mobile styles only override the base style within their own breakpoint:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Viewport<\/th><th>Applies to<\/th><\/tr><\/thead><tbody><tr><td><strong>Mobile<\/strong><\/td><td>Screens 480px wide and narrower<\/td><\/tr><tr><td><strong>Tablet<\/strong><\/td><td>Screens wider than 480px, up to 782px<\/td><\/tr><tr><td><strong>Default<\/strong><\/td><td>Every screen width, including as the fallback for anything you haven&#8217;t overridden at Tablet or Mobile<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Tablet and Mobile don&#8217;t interfere with each other&#8217;s styles. This means that if you set a Tablet style but leave Mobile untouched, Mobile doesn&#8217;t inherit your Tablet value. It falls back to the Default style. Set Mobile separately if you want a change to carry through to mobile-sized screens too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Theme customization<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your theme can customize the exact widths that count as Tablet and Mobile, so the breakpoints on your site may be slightly different from the defaults above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Limitations<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Only settings found in a styles panel or a block&#8217;s Settings sidebar (typography, color, spacing, borders, dimensions, and layout) can have a separate Tablet or Mobile value. Controls in the block toolbar, such as text alignment, apply to every screen size no matter which device view is selected. Finally, if you want to remove a block at a certain screen size, use the option to show and hide blocks available in the three dot menu in the block toolbar. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting responsive styles for a block type<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use this method to change how a block looks across your entire site. For example, making every Heading block smaller on mobile.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Appearance &gt; Editor<\/strong>, open the <strong>Styles<\/strong> panel, and click <strong>Blocks<\/strong>.<\/li>\n\n\n\n<li>Select the block type you want to change.<\/li>\n\n\n\n<li>At the top of the block&#8217;s panel, open the <strong>States<\/strong> dropdown.<\/li>\n\n\n\n<li>Under <strong>Viewport<\/strong>, choose <strong>Tablet<\/strong> or <strong>Mobile<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1454\" height=\"656\" src=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.01.05-PM.png\" alt=\"Display of the Viewport group with Tablet and Mobile options\" class=\"wp-image-16370001\" style=\"aspect-ratio:2.216530177856344;width:732px;height:auto\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.01.05-PM.png 1454w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.01.05-PM-300x135.png 300w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.01.05-PM-1024x462.png 1024w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.01.05-PM-767x346.png 767w\" sizes=\"auto, (max-width: 1454px) 100vw, 1454px\" \/><\/figure>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Change a style setting. For example, select a smaller font size. The styles panel filters down to just the settings that support responsive values, so you won&#8217;t see options that don&#8217;t apply.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1858\" height=\"1306\" src=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM.png\" alt=\"Typography panel with &quot;Tablet&quot; selected in the States dropdown, showing a smaller font size being set\" class=\"wp-image-16370007\" style=\"aspect-ratio:1.4226832769879127;width:736px;height:auto\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM.png 1858w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM-300x211.png 300w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM-767x539.png 767w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM-1024x720.png 1024w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.04.27-PM-1536x1080.png 1536w\" sizes=\"auto, (max-width: 1858px) 100vw, 1858px\" \/><\/figure>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>To go back to editing the block&#8217;s default (desktop) style, open the <strong>States<\/strong> dropdown again and choose <strong>Default<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Setting responsive styles for a single block<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use this method to change one block on one post, page, template, or pattern, without affecting every other instance of that block type.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the post, page, template, or pattern in the editor.<\/li>\n\n\n\n<li>Click <strong>View<\/strong> in the top toolbar and turn on <strong>Responsive styles<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"786\" src=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.06.41-PM.png\" alt=\"View dropdown open, showing the Responsive styles toggle above or below Desktop\/Tablet\/Mobile\" class=\"wp-image-16370014\" style=\"width:472px;height:auto\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.06.41-PM.png 790w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.06.41-PM-150x150.png 150w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.06.41-PM-300x298.png 300w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.06.41-PM-768x764.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/figure>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Switch the view to <strong>Tablet<\/strong> or <strong>Mobile<\/strong>.<\/li>\n\n\n\n<li>Select the block you want to change.<\/li>\n\n\n\n<li>Open the block&#8217;s Settings panel and change a style. For example, a smaller font size or different padding.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">While <strong>Responsive styles<\/strong> are on and you&#8217;re viewing Tablet or Mobile, the selected block&#8217;s Settings panel shows a badge naming the device you&#8217;re editing. There&#8217;s no badge in Desktop view, because changes made there apply to every screen size.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"702\" src=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.11.57-PM.png\" alt=\"Block Settings panel with a &quot;Tablet&quot; or &quot;Mobile&quot; badge visible near the top\" class=\"wp-image-16370020\" style=\"width:468px;height:auto\" srcset=\"https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.11.57-PM.png 706w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.11.57-PM-150x150.png 150w, https:\/\/wordpress.org\/documentation\/files\/2026\/08\/Markup-2026-08-18-at-3.11.57-PM-300x298.png 300w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Switch back to <strong>Desktop<\/strong> at any point to confirm the block&#8217;s default style is unchanged, or back to Tablet\/Mobile to confirm your override is still there. Turning <strong>Responsive styles<\/strong> off returns you to editing the block&#8217;s default style, whichever device view you&#8217;re in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This works the same way in the Post editor, the Template and Site editor, the Pattern editor, and the Navigation editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking contrast<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re editing a text or background color while a viewport state is selected, the contrast checker still works. It checks the color combination that will actually be used at that breakpoint, the same way it does for pseudo states like Hover.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">If you don&#8217;t see these options<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t see the <strong>Viewport<\/strong> group in the States dropdown, or the <strong>Responsive styles<\/strong> option in the View dropdown, your site administrator may have turned off responsive style editing for your site. Styles that were already set for Tablet or Mobile before this happened will keep displaying correctly. This only affects whether you can edit them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demo<\/h2>\n\n\n\n<figure class=\"wp-block-video wp-block-embed is-type-video is-provider-videopress\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"VideoPress Video Player\" aria-label=\"VideoPress Video Player\" width=\"500\" height=\"281\" src=\"https:\/\/videopress.com\/embed\/O1hWGk3l?cover=1&amp;preloadContent=metadata&amp;useAverageColor=1&amp;hd=0\" frameborder=\"0\" allowfullscreen data-resize-to-parent=\"true\" allow=\"clipboard-write; presentation\"><\/iframe><script src='https:\/\/v0.wordpress.com\/js\/next\/videopress-iframe.js?m=1770107250'><\/script>\n<\/div><\/figure>\n\n\n\n<div id=\"changelog\" class=\"wp-block-group changelog has-background is-layout-flow wp-block-group-is-layout-flow\" style=\"background-color:#dce5ec\">\n<h2 id=\"changelog\" class=\"wp-block-heading has-medium-font-size\">Changelog<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Created 2026-08-18<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Responsive styles let you give a block different settings depending on the screen size it&#8217;s viewed on. For example, you can change the font size to be smaller on mobile viewports or make padding tighter on tablet viewports. It&#8217;s only included in block themes and requires WordPress 7.1 or higher. You can set responsive styles [&hellip;]<\/p>\n","protected":false},"author":12256569,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":""},"category":[1],"class_list":["post-16369969","helphub_article","type-helphub_article","status-publish","hentry","category-uncategorized"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/16369969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles"}],"about":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/types\/helphub_article"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/comments?post=16369969"}],"version-history":[{"count":8,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/16369969\/revisions"}],"predecessor-version":[{"id":16370107,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/articles\/16369969\/revisions\/16370107"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wporg\/v1\/users\/clk87"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/media?parent=16369969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.org\/documentation\/wp-json\/wp\/v2\/category?post=16369969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}