SANTA CLARA, Calif. — For Anthony Miller, there was no internal debate about what he would do when he saw San Francisco 49ers safety Marcell Harris hit a sliding Mitch Trubisky in the fourth quarter of Sunday’s 14-9 win at Levi’s Stadium.

“I just saw Mitch’s head hit the ground real hard and I knew it was an unnecessary hit,” Miller said. “Like, nobody had to tell me nothing to go in there, because that’s my quarterback.”

Miller also said he would do exactly what he did — which resulted in an ejection — again if a similar circumstance presented itself.

“Because (Trubisky) already missed a couple games because of a late hit, so when I see that, that’s like dirty football, you know what I’m saying?” Miller said. “And I don’t support that.”

Miller, fellow receiver Josh Bellamy and 49ers cornerback Richard Sherman were all ejected for their roles in a fracas that ensued on the Bears’ sideline after Harris’ hit on Trubisky. The ejections of Miller and Bellamy left the Bears with only two active receivers — Allen Robinson and Taylor Gabriel — for the final few minutes of the fourth quarter, though the feeling around the Bears’ locker room was fully supportive of those players stepping in to defend their quarterback.

“That was dirty,” linebacker Danny Trevathan said. “I don’t like that. And I don’t play by my quarterback. I got Mitch’s back through whatever. That’s my teammate. … I didn’t like my mans getting kicked out for having their dude’s back. But you gotta control what you can control, you take it across your chin and you deal with it.”

Bellamy joked that he and Miller were sort of “looking like little kids right now” waiting for coach Matt Nagy to talk to them about their roles in the kerfuffle, but Nagy said he wasn’t planning on giving either of them a stern talking-to.

While the Bears, collectively, appreciated teammates having Trubisky’s back — offensive lineman Kyle Long appeared to bellow at the 49ers involved in the scuffle, too — they also hope that if something similar happens again, nobody will get ejected. Because most likely, the next time it could potentially happen would be in the playoffs, after all.

“I saw exactly what I knew, my teammates had my back all the way,” Trubisky said. “We just gotta have my back and be smart as a team, because we can’t afford to lose two guys like that. But we’re brothers out there, we’re a family, we’re going to protect one another and it was nice to see they had my back and I hope they know I always got theirs as well. We just gotta play smart football and go from there. But it was cool to see those guys jump in, but we just gotta be smart about it because we need everyone.”