Design pattern for no internet message
<p>I am working on a e-commerce application which has several screen. When ever there is no internet, need to show specific fragment with message "no internet available". Once internet is back this fragment should disappear and previously loaded fragment should be shown.</p>

<p>What kind of design should be used for this kind of problem?</p>