I want to add a custom link attribute to all elements with a specific class

Im using elementor version 3.1 with a custom theme but elementor will not create the custom attribute for a tags. (I used the key|value option in elementor)

Is there any way I can use a filter to select elements() with a specific class on a certain page ID and add a custom attribute?