diff --git a/scripts/confluence_create_or_update_page.py b/scripts/confluence_create_or_update_page.py
index 486ae82592a0f2a6b4135712a30c89812774b27d..29c0c3557aa5e072bafda1196b2b197d2472fde6 100755
--- a/scripts/confluence_create_or_update_page.py
+++ b/scripts/confluence_create_or_update_page.py
@@ -92,14 +92,34 @@ def main():
         if type(page) is dict:
             # Update existing page
             page = confluence.update_page(
-                page["id"], args.page_name, content, args.parent_id
+                page["id"], args.page_name, content, args.parent_id, full_width=False
             )
             print("Updated existing Confluence page:")
 
         else:
             # Create new page
             page = confluence.create_page(
-                args.space_id, args.page_name, content, args.parent_id
+                args.space_id,
+                args.page_name,
+                content,
+                args.parent_id,
+                representation="storage",
+                type="page",
+                editor="v2",
+                full_width=False,
+            )
+            # Update it immediately with the same contents because sometimes the
+            # "full_width=False" argument does not work, see:
+            # https://community.developer.atlassian.com/t/how-to-set-fixed-width-when-creating-new-page-with-rest-call/53591
+            page = confluence.update_page(
+                page["id"],
+                args.page_name,
+                content,
+                args.parent_id,
+                representation="storage",
+                type="page",
+                full_width=False,
+                minor_edit=True,
             )
             print("Created new Confluence page:")