Your mistake here was not limiting contact VERY severely when she was younger.
Loads of posts here on grandparents like this and it's always the best move to not let that relationship develop at all. Bit late when an independent older child with a phone thinks granny is lovely and can communicate independently of you.
If she doesn't like the way the grandparent speaks to you/DH then that's good, and that's your in. LIMIT CONTACT as much as possible right now, I'd go so far as to say cut contact for a while. Be blunt. Granny isn't nice to us, and she tells you to keep secrets from us which is really wrong and puts you in danger. We don't want to see much of her and we don't want you giving her your phone number.
It's almost too late, so come down really hard now.
Sound OTT?
I remember a thread on here which could easily be you in five years time. The very similar sounding grandparent had basically seen the normal teenage rebellion as the way to get the control she'd wanted for years, and at the point the poor mum posted, her son was basically completely out of control, off school, out all night, had a key to gran's so had a base to go back to at 3 am. Any communication was trumped by 'Granny thinks you've always been a rubbish mum so fuck off, I can stay with her and she lets me do what I like' At 15-16, nothing to be done. Too late.
The gran had always been the same and the mum bitterly regretted not cutting contact when the son was young.