diff --git a/docs/app/references/migration-guide.mdx b/docs/app/references/migration-guide.mdx
index 1b30fa952b..598716c842 100644
--- a/docs/app/references/migration-guide.mdx
+++ b/docs/app/references/migration-guide.mdx
@@ -48,15 +48,25 @@ Because of this, tests that visit more than one origin (defined as a composite o
Without `cy.origin()`, interacting with a second origin in the same test will cause the test to fail, even if the two origins
are in the same superdomain. This means you must now use `cy.origin()` in more situations than before.
- **Failing Test** ```js cy.visit('https://www.cypress.io')
-cy.visit('https://docs.cypress.io') cy.get('[role="banner"]').should('be.visible')
-// Cypress will not be able to interact with the page, causing the test to fail ```
-
- **Fixed Test** ```js cy.visit('https://www.cypress.io')
-cy.visit('https://docs.cypress.io') cy.origin('https://docs.cypress.io', () => {cy
- .get('[role="banner"]')
- .should('be.visible')}
-) ```
+{/* prettier-ignore-start */}
+ **Failing Test**
+```js
+cy.visit('https://www.cypress.io')
+cy.visit('https://docs.cypress.io')
+// Cypress will not be able to interact with the page, causing the test to fail
+cy.get('[role="banner"]').should('be.visible')
+```
+
+ **Fixed Test**
+
+```js
+cy.visit('https://www.cypress.io')
+cy.visit('https://docs.cypress.io')
+cy.origin('https://docs.cypress.io', () => {
+ cy.get('[role="banner"]').should('be.visible')
+})
+```
+{/* prettier-ignore-end */}
:::info