Q:

TV movie or episode, a man locks his wife outside during a pandemic

I watched this (sorry for being vague) between 2 and 8 years ago on UK TV. It was either a TV movie or an episode of a Twilight Zone/Outer Limits style series
It was American, set I think in a small town. Some kind of deadly virus or plague was happening and everyone was trying to self-isolate with their families.
A man and his wife barricade their house and put long sheets of plastic over windows and around doors including their front porch.
For some reason his wife slips away somewhere but when she returns he won't open the door.
Cue lots of arguing while she cowers in the sheeted off porch.
Memory failure after that, I want to say hegets his come uppance by the end but I'm really not sure

A:

This may be the 2006 film, Right At Your Door.

After Lexi leaves home to visit Central LA, there's a terrorist attack involving chemical bombs. After the attack, her musician husband, Brad, fails to find her and reluctantly seals himself inside his house. He will have to deal with this decision in the days to come.

I recognized the plot from your description. He's already sealed up the house by the time she arrives, and indeed, she shelters on the porch. And yes, he gets his comeuppance, as described in the Wikipedia article.

 The next couple of hours are spent with Brad and Lexi on their respective sides of the door, who talk about what they will do assuming