No, dark mode compatibility is optional. It provides a dark theme for the popup ad to cater to users who prefer dark mode. You can omit this part if not needed.