These days developers use dark/light/system modes. If you have fill="#fff", you have the white bg when the mode is dark.
For example, bluesky has it.
// this line
<path d="m0 0H512V512H0" fill="#fff" />
// to
<path d="m0 0H512V512H0" fill="none" />
// or
<path d="m0 0H512V512H0" fill="transparent" />