screen turns black then on and turns on auto-rotate.

A

AC Question

My screen will randomly go black and auto-rotate by it's self and in the corner there will be a X. It's like an ad, I don't know what it is, my phone is only about 4 or 5 months old and it's a galaxy s6 edge.