You can simply set a variable from the Model in the Controller indicating that you want to show a particular part of the html.
Sample:
In your model add a property:
public TestModel
{
public bool ShowContentX {get;set;}
}
In your Controller, fill it and pass the model to the View:
TestModel t = new TestModel();
t.ShowContentX = true; // create check here.
return View(t);
In your View, check if the property is true
:
@if (@model.ShowContentX) {
<p>add your html</p>
}