diff --git a/packages/excalidraw/components/LayerUI.tsx b/packages/excalidraw/components/LayerUI.tsx
index 7de31ad50..5c4c3817f 100644
--- a/packages/excalidraw/components/LayerUI.tsx
+++ b/packages/excalidraw/components/LayerUI.tsx
@@ -450,7 +450,7 @@ const LayerUI = ({
}}
tab={DEFAULT_SIDEBAR.defaultTab}
>
- {t("toolBar.library")}
+ {!device.editor.showCompactSidebar && t("toolBar.library")}
{appState.openDialog?.name === "ttd" && }