diff --git a/client/src/components/Messages/Content/Markdown.tsx b/client/src/components/Messages/Content/Markdown.tsx
index 89fecd36cc..367e52f1a9 100644
--- a/client/src/components/Messages/Content/Markdown.tsx
+++ b/client/src/components/Messages/Content/Markdown.tsx
@@ -10,7 +10,7 @@ import supersub from 'remark-supersub';
import remarkGfm from 'remark-gfm';
import rehypeRaw from 'rehype-raw';
import CodeBlock from './CodeBlock';
-import { langSubset } from '~/utils';
+import { langSubset, validateIframe } from '~/utils';
import store from '~/store';
type TCodeProps = {
@@ -47,7 +47,7 @@ const Markdown = React.memo(({ content, message, showCursor }: TContentProps) =>
const isInitializing = content === '█';
const isLatestMessage = message?.messageId === latestMessage?.messageId;
const currentContent = content?.replace('z-index: 1;', '') ?? '';
- const isIFrame = currentContent.includes('