diff --git a/web/pgadmin/browser/static/js/node_view.jsx b/web/pgadmin/browser/static/js/node_view.jsx
index 7681024c0..fde229f0c 100644
--- a/web/pgadmin/browser/static/js/node_view.jsx
+++ b/web/pgadmin/browser/static/js/node_view.jsx
@@ -18,6 +18,7 @@ import { generateNodeUrl } from './node_ajax';
 import Notify from '../../../static/js/helpers/Notifier';
 import gettext from 'sources/gettext';
 import 'wcdocker';
+import Theme from '../../../static/js/Theme';
 
 /* The entry point for rendering React based view in properties, called in node.js */
 export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, formType, container, containerPanel, onEdit, onSave) {
@@ -204,24 +205,26 @@ export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, fo
 
   /* Fire at will, mount the DOM */
   ReactDOM.render(
-    <SchemaView
-      formType={formType}
-      getInitData={initData}
-      schema={schema}
-      viewHelperProps={viewHelperProps}
-      onSave={onSaveClick}
-      onClose={()=>containerPanel.close()}
-      onHelp={onHelp}
-      onEdit={onEdit}
-      onDataChange={(dataChanged)=>{
-        isDirty = dataChanged;
-      }}
-      confirmOnCloseReset={confirmOnCloseReset}
-      hasSQL={nodeObj.hasSQL && (actionType === 'create' || actionType === 'edit')}
-      getSQLValue={getSQLValue}
-      disableSqlHelp={nodeObj.sqlAlterHelp == '' && nodeObj.sqlCreateHelp == '' && !nodeObj.epasHelp}
-      disableDialogHelp={nodeObj.dialogHelp == undefined || nodeObj.dialogHelp == ''}
-    />, container);
+    <Theme>
+      <SchemaView
+        formType={formType}
+        getInitData={initData}
+        schema={schema}
+        viewHelperProps={viewHelperProps}
+        onSave={onSaveClick}
+        onClose={()=>containerPanel.close()}
+        onHelp={onHelp}
+        onEdit={onEdit}
+        onDataChange={(dataChanged)=>{
+          isDirty = dataChanged;
+        }}
+        confirmOnCloseReset={confirmOnCloseReset}
+        hasSQL={nodeObj.hasSQL && (actionType === 'create' || actionType === 'edit')}
+        getSQLValue={getSQLValue}
+        disableSqlHelp={nodeObj.sqlAlterHelp == '' && nodeObj.sqlCreateHelp == '' && !nodeObj.epasHelp}
+        disableDialogHelp={nodeObj.dialogHelp == undefined || nodeObj.dialogHelp == ''}
+      />
+    </Theme>, container);
 }
 
 /* When switching from normal node to collection node, clean up the React mounted DOM */
diff --git a/web/pgadmin/static/js/SchemaView/index.jsx b/web/pgadmin/static/js/SchemaView/index.jsx
index 9a8919f2f..0dd42996c 100644
--- a/web/pgadmin/static/js/SchemaView/index.jsx
+++ b/web/pgadmin/static/js/SchemaView/index.jsx
@@ -979,19 +979,15 @@ export default function SchemaView({formType, ...props}) {
   /* Switch the view based on formType */
   if(formType === 'tab') {
     return (
-      <Theme>
-        <ErrorBoundary>
-          <SchemaPropertiesView {...props}/>
-        </ErrorBoundary>
-      </Theme>
+      <ErrorBoundary>
+        <SchemaPropertiesView {...props}/>
+      </ErrorBoundary>
     );
   }
   return (
-    <Theme>
-      <ErrorBoundary>
-        <SchemaDialogView {...props}/>
-      </ErrorBoundary>
-    </Theme>
+    <ErrorBoundary>
+      <SchemaDialogView {...props}/>
+    </ErrorBoundary>
   );
 }
 
diff --git a/web/pgadmin/static/js/helpers/ModalProvider.jsx b/web/pgadmin/static/js/helpers/ModalProvider.jsx
index 946b31e03..12c9b113b 100644
--- a/web/pgadmin/static/js/helpers/ModalProvider.jsx
+++ b/web/pgadmin/static/js/helpers/ModalProvider.jsx
@@ -267,36 +267,35 @@ function ModalContainer({ id, title, content, dialogHeight, dialogWidth, onClose
   const [isfullScreen, setIsFullScreen] = useState(fullScreen);
 
   return (
-    <Theme>
-      <Dialog
-        open={true}
-        onClose={closeModal}
-        PaperComponent={PaperComponent}
-        PaperProps={{ 'isfullscreen': isfullScreen.toString(), 'isresizeable': isResizeable.toString(), width: dialogWidth, height: dialogHeight }}
-        fullScreen={isfullScreen}
-        fullWidth={isFullWidth}
-        disableBackdropClick
-      >
-        <DialogTitle className='modal-drag-area'>
-          <Box className={classes.titleBar}>
-            <Box className={classes.title} marginRight="0.25rem" >{title}</Box>
-            {
-              showFullScreen && !isfullScreen &&
-              <Box className={classes.iconButtonStyle}><PgIconButton title={gettext('Maximize')} icon={<ExpandDialogIcon className={classes.icon} />} size="xs" noBorder onClick={() => { setIsFullScreen(!isfullScreen); }} /></Box>
-            }
-            {
-              showFullScreen && isfullScreen &&
-              <Box className={classes.iconButtonStyle}><PgIconButton title={gettext('Minimize')} icon={<MinimizeDialogIcon  className={classes.icon} />} size="xs" noBorder onClick={() => { setIsFullScreen(!isfullScreen); }} /></Box>
-            }
+    <Dialog
+      open={true}
+      onClose={closeModal}
+      PaperComponent={PaperComponent}
+      PaperProps={{ 'isfullscreen': isfullScreen.toString(), 'isresizeable': isResizeable.toString(), width: dialogWidth, height: dialogHeight }}
+      fullScreen={isfullScreen}
+      fullWidth={isFullWidth}
+      disableBackdropClick
+      disablePortal
+    >
+      <DialogTitle className='modal-drag-area'>
+        <Box className={classes.titleBar}>
+          <Box className={classes.title} marginRight="0.25rem" >{title}</Box>
+          {
+            showFullScreen && !isfullScreen &&
+            <Box className={classes.iconButtonStyle}><PgIconButton title={gettext('Maximize')} icon={<ExpandDialogIcon className={classes.icon} />} size="xs" noBorder onClick={() => { setIsFullScreen(!isfullScreen); }} /></Box>
+          }
+          {
+            showFullScreen && isfullScreen &&
+            <Box className={classes.iconButtonStyle}><PgIconButton title={gettext('Minimize')} icon={<MinimizeDialogIcon  className={classes.icon} />} size="xs" noBorder onClick={() => { setIsFullScreen(!isfullScreen); }} /></Box>
+          }
 
-            <Box marginLeft="auto"><PgIconButton title={gettext('Close')} icon={<CloseIcon  />} size="xs" noBorder onClick={closeModal} /></Box>
-          </Box>
-        </DialogTitle>
-        <DialogContent height="100%">
-          {content(closeModal)}
-        </DialogContent>
-      </Dialog>
-    </Theme>
+          <Box marginLeft="auto"><PgIconButton title={gettext('Close')} icon={<CloseIcon  />} size="xs" noBorder onClick={closeModal} /></Box>
+        </Box>
+      </DialogTitle>
+      <DialogContent height="100%">
+        {content(closeModal)}
+      </DialogContent>
+    </Dialog>
   );
 }
 ModalContainer.propTypes = {
diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/GraphVisualiser.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/GraphVisualiser.jsx
index 5b41998da..d2ccc9118 100644
--- a/web/pgadmin/tools/sqleditor/static/js/components/sections/GraphVisualiser.jsx
+++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/GraphVisualiser.jsx
@@ -300,52 +300,50 @@ export function GraphVisualiser({initColumns}) {
   };
 
   return (
-    <Theme>
-      <Box className={classes.mainContainer}>
-        <Loader message={loaderText} />
-        <Box className={classes.topContainer}>
+    <Box className={classes.mainContainer}>
+      <Loader message={loaderText} />
+      <Box className={classes.topContainer}>
+        <Box className={classes.displayFlex}>
           <Box className={classes.displayFlex}>
-            <Box className={classes.displayFlex}>
-              <span className={classes.spanLabel}>{gettext('X Axis')}</span>
-              <InputSelect className={classes.selectCtrl} options={xAxisOptions}
-                onChange={(v)=>setXAxis(v)} value={xaxis} optionsReloadBasis={optionsReload}/>
-            </Box>
-            <Box className={classes.displayFlex} marginLeft="auto">
-              <span className={classes.spanLabel} >{gettext('Graph Type')}</span>
-              <InputSelect className={classes.selectCtrl} controlProps={{allowClear: false}}
-                options={[
-                  {label: gettext('Line Chart'), value: 'L'},
-                  {label: gettext('<More charts coming soon>'), value: 'L'}
-                ]} onChange={(v)=>setGraphType(v)} value={graphType} />
-            </Box>
-            <DefaultButton onClick={onGenerate} startIcon={<ShowChartRoundedIcon />}
-              disabled={ _.isEmpty(xaxis) || yaxis.length <= 0 }>
-              {gettext('Generate')}
-            </DefaultButton>
+            <span className={classes.spanLabel}>{gettext('X Axis')}</span>
+            <InputSelect className={classes.selectCtrl} options={xAxisOptions}
+              onChange={(v)=>setXAxis(v)} value={xaxis} optionsReloadBasis={optionsReload}/>
           </Box>
-          <Box className={classes.displayFlex}>
-            <span className={classes.spanLabel}>{gettext('Y Axis')}</span>
-            <InputSelect className={classes.selectCtrl} controlProps={{'multiple': true, allowSelectAll: true}}
-              options={yAxisOptions} onChange={(v)=>setYAxis(v)} value={yaxis} optionsReloadBasis={optionsReload}/>
+          <Box className={classes.displayFlex} marginLeft="auto">
+            <span className={classes.spanLabel} >{gettext('Graph Type')}</span>
+            <InputSelect className={classes.selectCtrl} controlProps={{allowClear: false}}
+              options={[
+                {label: gettext('Line Chart'), value: 'L'},
+                {label: gettext('<More charts coming soon>'), value: 'L'}
+              ]} onChange={(v)=>setGraphType(v)} value={graphType} />
           </Box>
+          <DefaultButton onClick={onGenerate} startIcon={<ShowChartRoundedIcon />}
+            disabled={ _.isEmpty(xaxis) || yaxis.length <= 0 }>
+            {gettext('Generate')}
+          </DefaultButton>
         </Box>
-        <Box display="flex" marginLeft="3px" marginTop="3px">
-          <PgButtonGroup size="small">
-            <PgIconButton title={gettext('Zoom to original')} icon={<ZoomOutMapIcon style={{height: '1.2rem'}}/>}
-              onClick={()=>onResetZoom()} disabled={ graphData.datasets.length <= 0 }/>
-            <PgIconButton title={gettext('Download')} icon={<SaveAltIcon style={{height: '1.2rem'}}/>}
-              onClick={onDownloadGraph} disabled={ graphData.datasets.length <= 0 }/>
-          </PgButtonGroup>
+        <Box className={classes.displayFlex}>
+          <span className={classes.spanLabel}>{gettext('Y Axis')}</span>
+          <InputSelect className={classes.selectCtrl} controlProps={{'multiple': true, allowSelectAll: true}}
+            options={yAxisOptions} onChange={(v)=>setYAxis(v)} value={yaxis} optionsReloadBasis={optionsReload}/>
         </Box>
-        <Box ref={contentRef} className={classes.graphContainer}>
-          <Box style={{height:`${graphHeight}px`}}>
-            <GenerateGraph graphType={graphType} graphData={graphData} onInit={(chartObj)=> {
-              chartObjRef.current = chartObj;
-            }} plugins={plugin}/>
-          </Box>
+      </Box>
+      <Box display="flex" marginLeft="3px" marginTop="3px">
+        <PgButtonGroup size="small">
+          <PgIconButton title={gettext('Zoom to original')} icon={<ZoomOutMapIcon style={{height: '1.2rem'}}/>}
+            onClick={()=>onResetZoom()} disabled={ graphData.datasets.length <= 0 }/>
+          <PgIconButton title={gettext('Download')} icon={<SaveAltIcon style={{height: '1.2rem'}}/>}
+            onClick={onDownloadGraph} disabled={ graphData.datasets.length <= 0 }/>
+        </PgButtonGroup>
+      </Box>
+      <Box ref={contentRef} className={classes.graphContainer}>
+        <Box style={{height:`${graphHeight}px`}}>
+          <GenerateGraph graphType={graphType} graphData={graphData} onInit={(chartObj)=> {
+            chartObjRef.current = chartObj;
+          }} plugins={plugin}/>
         </Box>
       </Box>
-    </Theme>
+    </Box>
   );
 }
 GraphVisualiser.propTypes = {
