Change existing design with Theme App extension

I want to override rendering of components

As an example, let’s say I created a custom buy button using the theme app extension. So, if I use this extension in the product page, I would like my custom buy button to render and the default buy button to disappear. Also, the button should display based on whether a product has a specific tag