You can reduce Apple's semitransparent "Liquid Glass" effect by going to Settings > Accessibility > Display & Text Size and enabling Reduce Transparency. You can't turn the effect off completely, but this setting makes UI elements like menus and folders more opaque. On macOS, you go to System Settings > Accessibility > Display to find the same option.