Consider spacers, some are included with a doorbell 2. there are others available that are not ring brand. if you carve one so that it fits over the old doorbell and The masonry, and a slight bit of its edge can get a grip with screws to your narrow trim, then a doorbell will fit over that easy-peasy