Hello
You can achieve this with JavaScript Asynchronously
Code Snippet
window.addEventListener("offline", (event) => { const statusDisplay = document.getElementById("status"); statusDisplay.textContent = "OFFline";});
window.addEventListener("online", (event) => { const statusDisplay = document.getElementById("status"); statusDisplay.textContent = "Online";});
Also we have a UI component You have to take the dependencies for OutSystems UI

I Hope This Helps
Thanks