const Title = styled("h1")`
font-weight: bold;
color: dodgerblue;
background-color: ${(props) => (props.background ? "lightblue" : null)};
`;
When the background property is null or false, background-color is not stripped from the generated CSS.

CodeSandbox demontrating the issue