Create button that only appears on certain layouts

Create button that only appears on certain layouts

I have a button that I have created for a module, but I only want it to appear on certain layouts. Is that posible?