Differents layouts

I have two beacons and need use different layouts when detecting this beacons for example one layout have one text and image and the other one video and text.

At now i the same layout for the two beacons.

Someone know how do it? and has one example

thanks everyone.