Laptop on a wooden desk showing three side-by-side comparison columns, with a phone beside it showing stacked cards.

How to Build a Comparison Table in GenerateBlocks That Still Reads on a Phone

You built a three-product table, and in the editor it looked tidy. Then you opened the post on your own phone. One product name had split across two lines halfway through the word, and every column was squeezed down to a few letters wide.

When you went looking for a way to fix your generateblocks comparison table, the answers were “install a table plugin” or a tutorial telling you to add a Grid block your inserter doesn’t even show.

Neither of those is your fault. The core Table block keeps every column side by side whatever the screen, and GenerateBlocks changed its blocks, so a lot of older tutorials no longer match what you’re looking at.

You already run GeneratePress and GenerateBlocks, and you’d like a table that works on a phone with what’s installed, without another plugin and without writing custom CSS (styling code). That’s doable.

Here’s how to build one from two free blocks so it shows as a table on a laptop and as one card per product on a phone, what that costs you in editing, and when the core Table block is honestly the better choice.

TL;DR: Building a GenerateBlocks Comparison Table

  • Put two versions of the table on the page: a desktop table hidden at the Mobile breakpoint, and one card per product hidden at Desktop & Tablet. Each visitor only sees one of them.
  • It uses only free GenerateBlocks (the Container and Text blocks) on GeneratePress, with no table plugin and no custom CSS.
  • Plan 3 to 5 columns and keep the first column short, because it becomes each card’s title.
  • The cost: every value exists twice, so every edit is made twice. For a small table with short text, or a data table where screen readers matter, the core Table block is the better choice.
  • Why Your Comparison Table Falls Apart on a Phone

    If your table looks fine in the editor and broken on your phone, the cause is simple. The core Table block keeps every column side by side on every screen. On a laptop that’s what you want, but on a phone the same columns have to share a much narrower space, so each one shrinks until words break mid-word and the rows end up at uneven heights.

    There are two usual answers, and each one costs you something. A scrolling wrapper keeps the table wide and lets the reader swipe sideways, but once they swipe, the product names in the first column slide off the screen and they lose track of which row they’re reading.

    The other answer is a table plugin. It works, but it’s one more plugin to install, update and keep an eye on for a single table in a review.

    Then there’s the tutorial problem. GenerateBlocks 2 replaced the old Grid, Headline and Button blocks with the Container block (which has a Grid variation) and the Text block. Plenty of readers follow an older tutorial, can’t find the block it names, and assume they’ve done something wrong.

    They haven’t. Sites that already used the older blocks keep them working, so if your site has older posts, you may still see them there. Every step in this post uses the blocks your inserter shows today, the ones GenerateBlocks lists on WordPress.org: Container and Text.

    The fix this whole post rests on is one simple idea: the page holds two versions of the same content. The desktop table is set to hide on phone-sized screens, and the cards are set to hide on anything larger, so each visitor only ever sees one of them. The comparison tables on this site are built this way, and it needs nothing beyond the blocks you already have.

    Diagram of one comparison table shown as a desktop table hidden at Mobile and as phone cards hidden at Desktop & Tablet.

    Is the Core Table Block Enough for Your Table?

    Before you build two layouts, check whether you need them. The core Table block handles more tables than its phone reputation suggests, and these five checks tell you which side of the line yours falls on:

    • How many columns it has. A table with 2 or 3 short columns often survives a phone screen without breaking words.
    • How long the cell text is. Numbers and single words squeeze far better than phrases.
    • Whether readers compare products row by row on a phone. If people use the table to choose between products, a squeezed layout costs you more than it would on a reference table.
    • How often it changes. A table you update every week is a poor fit for any build that doubles the editing.
    • Whether screen-reader table navigation matters for this content. Some tables are real data that people move through with a screen reader, and those need a real table with a header row.

    To be fair to the core block, it does several things well. The WordPress documentation for the core Table block covers a header section, a caption, fixed-width cells and a striped style. What that page doesn’t cover is small screens, and it notes that the final look depends on your theme.

    The mid-word breaks come from the Table block’s Fixed width table cells setting, which WordPress has switched on by default since version 6.6. Switch it off and the columns size to their content instead, so the table scrolls sideways on a phone, with the tradeoff from the section above: the product names slide off screen as the reader swipes.

    Here’s how the two ways to build a comparison table line up side by side:

    Point

    Core Table block

    Container and Text build

    On a phone

    Columns squeeze side by side

    One labelled card per product

    Screen readers

    Each value tied to its column header (header section on)

    No header connection, partly offset by labelled card lines

    Changing a value

    One edit

    Two edits, row and card

    Setup

    Insert and type

    Build once, then insert as a saved pattern

    Best for

    Small, short-text tables and data tables

    Product comparisons of 3 to 5 columns in reviews and roundups

    On a phone

    Core Table block: Columns squeeze side by side

    Container and Text build: One labelled card per product

    Screen readers

    Core Table block: Each value tied to its column header (header section on)

    Container and Text build: No header connection, partly offset by labelled card lines

    Changing a value

    Core Table block: One edit

    Container and Text build: Two edits, row and card

    Setup

    Core Table block: Insert and type

    Container and Text build: Build once, then insert as a saved pattern

    Best for

    Core Table block: Small, short-text tables and data tables

    Container and Text build: Product comparisons of 3 to 5 columns in reviews and roundups

    What I’d tell someone asking is this. The core Table block is enough for a small table with short text, or for a data table where screen readers need the headers, and if that’s your table, you can skip the rest of this post.

    The card build earns its extra setup for a product comparison of 3 to 5 columns in a review or roundup, the kind readers go through row by row on a phone while they decide.

    If you’re still working out what belongs in a review’s table, settle that before you build: it’s the products and the few points readers actually compare.

    Do You Need GenerateBlocks Pro or a Table Plugin?

    If this is starting to sound like a Pro feature, it isn’t. Since version 2, the free plugin lets you style a block differently at its built-in breakpoints (the screen sizes where a layout can change), and hiding a block at one of them is all the switch between table and cards needs.

    GenerateBlocks says so itself in its announcement of version 2: the free version has full styling control across its breakpoints.

    What you need is GeneratePress, free or Premium, and the free GenerateBlocks plugin. The Global Colors you’ll use for the borders and the header fill are in the free theme. That’s the whole list.

    GenerateBlocks Pro adds a device visibility toggle and custom breakpoints, and this build uses neither. GenerateBlocks Pro is also a separate purchase from GeneratePress Premium, so whether GeneratePress Premium is worth paying for is its own decision, and this table doesn’t change it.

    You don’t need a table plugin either. A plugin earns its place on an affiliate site when it does something your theme and blocks can’t, and a two-layout table isn’t one of those jobs. The table and product display plugins are weighed alongside the plugins an affiliate site actually needs, if you want to see where they fit.

    Plan the Table Before You Open the Editor

    Decide the products and the few points readers compare before you build anything. Every value you add is a value you’ll maintain in two places, so fewer, sharper rows pay off more here than they would in an ordinary table.

    The way I build the tables on this site starts with three limits, each with a reason behind it:

    • Keep it to 3 to 5 columns. A 2-column table usually reads fine in the core Table block, and each extra column is another line on every phone card and a narrower column on the desktop table.
    • Make column 1 a short product or plan name, never a sentence. It becomes the title of each card on the phone, and a title that wraps over several lines buries the card under it.
    • Keep the other cells to short phrases. Each one becomes its own labelled line on the phone, so a short phrase reads as one clean line where a sentence turns into a small paragraph.

    For the header fill and the borders, take your colors from GeneratePress Global Colors rather than picking them by hand. That way the table matches the rest of the site, and if you change your palette later, the table follows without you touching a single block. If you haven’t done it yet, setting your colors once is worth doing before you build any tables.

    Build the Desktop Table From Container and Text Blocks

    The desktop table comes first, inside a wrapper that will also hold the phone cards. Everything here uses the Container and Text blocks, with no custom CSS and no class names.

    Step 1: Add a Wrapper Container

    Add one Container block where the table should go. This is the wrapper, and it holds both layouts: the desktop table now and the phone cards later. Keeping them inside one Container means you can select the whole thing in one click later and save it as a single reusable piece.

    Step 2: Build the Header Row and Product Rows

    Inside the wrapper, add a second Container for the desktop layout. With it selected, open the Styles tab in the block sidebar (the half-filled circle icon), then under Layout set Display to Flex and Flex Direction to Column, so its rows stack from top to bottom. Inside that, add one Container for the header row, then one Container for each product row.

    Give each row Container the same settings, with Flex Direction set to Row, so its cells sit side by side. Inside each row, add one Container per column with one Text block in each. On every column Container, set Flex Grow to 1 and Flex Basis to 0, also under Layout. Every column then gets the same width, so each cell lines up under its header, row after row.

    Give the column Containers a border in one of your Global Colors, and give the header row a pale fill so it reads as a header at a glance. The header row holds the column names, and each product row holds that product’s values in the same order.

    Block editor List View showing a wrapper holding a desktop layout with header and product rows, then three product cards.

    Step 3: Hide the Desktop Table on Phones

    Select the desktop Container, not the wrapper. In its Styles tab, click Mobile (the phone icon in the row of device buttons that starts with All), then under Layout set Display to None. On a phone the table now disappears completely, which leaves the space for the cards you’ll add next.

    Add One Card per Product for Phone Screens

    The cards carry the same content as the table, one product per card, with every value labelled. They sit in the same wrapper, right below the desktop layout.

    Step 4: Add One Card Container per Product

    Inside the wrapper and below the desktop Container, add one Container for each product. If the table compares three products, you add three cards, in the same order as the table rows.

    Step 5: Add the Product Name and Labelled Lines

    In each card, add a Text block for the product name and make it bold. I use bold paragraph text here rather than a heading, so the page’s heading order stays clean and no stray heading level turns up in the middle of a section.

    Below the name, add one Text block per value, and start each one with its column label, such as “Price:” followed by the value. Between the lines, add a thin Container as a divider so they don’t run together on a small screen.

    Step 6: Hide the Cards on Larger Screens

    Select each card and open its Styles tab. Click Manage at-rules (the sliders icon at the end of the device buttons), pick Desktop & tablet, then under Layout set Display to None. One rule per card does the job, because Desktop & tablet covers every screen from tablet size up.

    Step 7: Check It on a Real Phone

    Open the post on your own phone. If it isn’t published yet, log in to WordPress in your phone’s browser first, because a preview only opens for someone who’s logged in. A tablet, or a phone turned sideways, may still show the desktop table, because the cards only take over on screens narrower than a tablet.

    Count the cards, then read each one against its table row and make sure the wording matches line for line. This is where you catch a card you forgot to hide, or a value you changed in one place only.

    Phone view of a comparison table as stacked cards, each titled with its row and every line labelled.

    The cards also do something for readers that the squeezed table never could. Every value carries its own label, so nobody scrolling on a phone has to remember which column they’re in.

    The Honest Cost: Every Row Is Built Twice

    Isn’t this twice the work? For edits, yes. Every value sits in two places, the desktop row and the phone card, so when a price changes, you change it in both. That’s why this build suits tables that don’t change every week.

    What makes it bearable is saving the finished table as a WordPress pattern. Select the wrapper Container, open the three-dot menu in the block toolbar, create a pattern and leave it not synced. Your next review then starts from a ready-made table you only have to fill in. Setup gets quick, but the edits stay double.

    There’s one more tradeoff, and you should know it before you commit. A table built from Containers looks like a table, but a screen reader reads it as separate lines of text, with no way to know which column header each value belongs to. A real table tells it that, and the core Table block, with its header section switched on, keeps that connection.

    The phone cards partly offset this, because every line on them carries its own label. For a table that people genuinely navigate as data, though, the core block is still the right tool. The World Wide Web Consortium’s tables tutorial explains how a real table’s headers work for screen readers, if you want the detail.

    With that weighed up, you’ve got everything you need to decide and to build. Pick the review on your site whose table is most cramped on a phone, rebuild it this way, and check it on your own phone before you call it done. Then save it as a pattern, so the next review starts with its table already laid out.

    How many columns does your comparison need, and now that you’ve seen the checks, would the core Table block have done the job after all? Tell me in the comments. I read and reply to every one.

    About Sonia — CEO of Click To Prosper.

    Sonia Zannoni

    Hi, I’m Sonia Zannoni, creator of Click to Prosper. I share practical tools, workflows, and honest guidance to help you build an online business with more clarity and less chaos.

    About Sonia
    Wealthy Affiliate All-in-One Platform for Building Online with Training, Tools, and Hosting
    Click to Prosper Mission Statement Helping Beginners Build Online with Clarity, Structure, and the Right Tools

    Feeling stuck between too many tools and too much advice? Start with the beginner path.

    View the Blueprint