diff --git a/src/frontend/src/features/rooms/livekit/prefabs/VideoConference.tsx b/src/frontend/src/features/rooms/livekit/prefabs/VideoConference.tsx
index 3d7d7890..63636dd1 100644
--- a/src/frontend/src/features/rooms/livekit/prefabs/VideoConference.tsx
+++ b/src/frontend/src/features/rooms/livekit/prefabs/VideoConference.tsx
@@ -35,6 +35,7 @@ import { useVideoResolutionSubscription } from '../hooks/useVideoResolutionSubsc
import { SettingsDialogProvider } from '@/features/settings/components/SettingsDialogProvider'
import { IsIdleDisconnectModal } from '../components/IsIdleDisconnectModal'
import { RoomPiP } from '@/features/pip/components/RoomPiP'
+import { useRoomPiP } from '@/features/pip/hooks/useRoomPiP'
import { getParticipantName } from '@/features/rooms/utils/getParticipantName'
import { useScreenReaderAnnounce } from '@/hooks/useScreenReaderAnnounce'
import { ReactionPortals } from '@/features/reactions/components/ReactionPortals'
@@ -228,6 +229,9 @@ export function VideoConference({ ...props }: VideoConferenceProps) {
])
/* eslint-enable react-hooks/exhaustive-deps */
+ const { isOpen: isPiPOpen } = useRoomPiP()
+ const shouldRenderMainLayout = !isPiPOpen
+
const [isShareErrorVisible, setIsShareErrorVisible] = useState(false)
return (
@@ -249,32 +253,36 @@ export function VideoConference({ ...props }: VideoConferenceProps) {
/>
- {!focusTrack ? (
-
- ) : (
-
-
-
+ {!focusTrack ? (
+
-
-
- {focusTrack &&
}
-
-
+
+
+
+
+ ) : (
+
+
+
+
+
+ {focusTrack && }
+
+
+ )}
+ >
)}