I taught high school and ran into the same issue. Stand in the doorway with a bucket; as each student walks in the room, have them put their phones, etc in the bucket. Do not let anyone in your classroom unless they do this. Your next step is to 'shot a hostage' so to speak. You need to show your authority right away. So the next time someone acts up. Kick that person out of your class - permanently. Tell the class from that point forward this is the policy. And of course follow up with the same action if someone else acts up, speaks out, or does whatever you don't approve of in your classroom.
You can't make them learn or enjoy it. But you can weed out the troublemakers.
I had a group of about 6 boys that did the same thing. I gave them an assignment to do a presentation. All six of them played dumb, similar to what you described. So I told the entire class that those 6 just failed the class. Not the assignment. And told them to never come back. From that point on - all the kids straightened up.