Theme style overrides the plugin style

In a plugin, you have hook add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ) to enqueue script and CSS. In this hook, there is third parameter $priority you can add the lowest priority to load that hook earlier in execution. So you have 2 options:

  • So if you do not have $priority added for plugin hook, it is 10. So you can add the higher priority for theme’s hook. OR
  • You can add the less priority that 10 to plugin’s hook.

This Priority option will work for you to load the script/css. for more information you can visit here: https://developer.wordpress.org/reference/functions/add_action/

Note**: Make sure plugin or theme update will not override this thing.