How you can achieve it, You can add condition before render that tag. For example
@{
if(ViewBag.ViewName == "test")
{
<div class="testcss">Good Morning!!!!!!!!!!!!!!!1</div>
}
}
If ViewName property of ViewBag object set to "test" from controller then you just render that div block otherwise it will not render.