Re-enable Custom CSS
- Visit
about:config
- Search
toolkit.legacyUserProfileCustomizations.stylesheets
- Toggle it, making the value
true
Create userChrome.css
- Visit
about:support
- To the right of "Profile Folder", press the button
Open Directory
- Create a new folder named
chrome
- Open the
chrome
folder and create a new file named userChrome.css
Set the styling in userChrome.css
Different CSS needs to be used depending on whether you have the titlebar enabled.
With Titlebar
Titlebar visible (Hamburger menu at top-right -> More Tools -> Customize Toolbar..)

Result (Ubuntu screenshot)

- Inside the
userChrome.css
file, insert the code below to hide tabs:
#TabsToolbar {
visibility: collapse;
}
- Close and reopen Firefox to see the changes.
Without Titlebar
Titlebar not visible (Hamburger menu at top-right -> More Tools -> Customize Toolbar..)

Result (Ubuntu screenshot)

- Inside the
userChrome.css
file, insert the code below to hide tabs:
#tabbrowser-tabs {
visibility: collapse;
}
- Close and reopen Firefox to see the changes.
Alternative Styling
Without Titlebar: Mini bar
Result (Ubuntu)

Styling
#tabbrowser-tabs {
visibility: collapse;
}
#titlebar {
max-height: 16px;
}
#TabsToolbar .titlebar-buttonbox-container {
transform: scale(.55) translateY(-10px) translateX(38px);
}
Without Titlebar: Drag Space Only (No Window Buttons)
Result (Ubuntu)

Styling
#tabbrowser-tabs {
visibility: collapse;
}
#titlebar {
max-height: 5px;
}
#TabsToolbar .titlebar-buttonbox-container {
display: none;
}
Without Titlebar: Inline Window Buttons (With Drag Box)
Result (Ubuntu)

Styling
#tabbrowser-tabs {
visibility: collapse;
}
#navigator-toolbox {
display: flex;
flex-flow: row wrap;
}
#titlebar {
order: 1;
max-width: 146px;
}
#titlebar #TabsToolbar {
background-color: var(--toolbar-bgcolor);
background-image: var(--toolbar-bgimage)
}
#titlebar #TabsToolbar .titlebar-spacer {
background-color: rgba(0,0,0,0.05);
margin: 3px;
border-radius: 25%;
cursor: grab;
}
#titlebar #TabsToolbar .titlebar-spacer[type="pre-tabs"] {
display: none;
}
#nav-bar {
order: 0;
width: calc(100% - 146px);
}
#PersonalToolbar {
order: 2;
}
/* Update - Hides the new Firefox home + tab dropdown. If you want to keep/customize those buttons. remove the CSS below and adjust the widths above to get everything fitting in one line */
#TabsToolbar .toolbar-items {
display: none;
}
For MacOS, you can also set
#nav-bar {
order: 0;
width: 100%;
}
This will move the window buttons on the bookmarks tab, making the top bar look more complete.
Tweaking these custom styles
You don't have to guess and check the styling. Firefox has a devtools window for the browser itself. It's called "Browser Toolbox", but looks identical to Firefox's website devtools.
Mozilla has info on how to use that here: https://firefox-source-docs.mozilla.org/devtools-user/browser_toolbox/index.html
The TL;DR is: Open Devtools -> Go to settings -> Check "Enable browser chrome and add-on debugging" and "Enable remote debugging" -> Use Ctrl + Shift + Alt + i
to launch it.