Every tuple in PostgreSQL carries a t_xmin and a t_xmax (the inserting and deleting transaction IDs). Two concurrent sessions looking at the same page can see different rows, because visibility isn't stored on the page, it's computed.
Three scenarios step both sessions through one statement at a time. Read committed shows the same SELECT returning different rows inside one transaction, Repeatable read shows one snapshot held to the end, and Dead versions and VACUUM shows a long-open transaction keeping a dead row version on the page. The A✓/A✗ and B✓/B✗ marks on each version say which session can see it. Free play hands you both sessions, and clicking any row version gives the visibility trace: which rule fired, which XID is still in flight, why A sees it and B doesn't.