how to convert an existing legacy website into a mobile friendly one?

Sabesan A K 0 Reputation points
2026-10-10T07:06:25.5466667+00:00

We have a website created in asp.net 15 years ago. Visitors complain that it is not mobile friendly.

How to convert it as mobile - friendly?

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

3 answers

Sort by: Most helpful
  1. Harry Nguyen (WICLOUD CORPORATION) 260 Reputation points Microsoft External Staff Moderator
    2026-10-12T02:34:52.6366667+00:00

    Hi @Sabesan A K ,

    Thank you for reaching out.

    Since the website was built with ASP.NET around 15 years ago, it would be helpful to understand the existing application before suggesting a specific approach for making it mobile-friendly.

    Could you please confirm which ASP.NET technology the website uses, such as ASP.NET Web Forms or ASP.NET MVC, if you know? If you are unsure, that is fine. The developer or team maintaining the website may be able to provide the framework/version or a screenshot of the project structure. If you have access to the project, indicating whether it contains files such as .aspx, .master, or .cshtml would also be helpful.

    To better understand the issue reported by your visitors, could you describe what happens when the website is accessed from a mobile device? For example, does the layout extend beyond the screen, require zooming or horizontal scrolling, make text or controls difficult to read or use, or affect only certain pages?

    Could you also confirm whether your goal is to improve the existing website for visitors using mobile browsers, or to provide a separate mobile application? Since this question is tagged with .NET MAUI, please clarify whether MAUI is already part of your current setup or is something you are considering.

    If your goal is to make the existing website easier to use in mobile browsers, a useful starting point is to review how its pages adapt to smaller screens. This may involve:

    • Rearranging multi-column layouts to fit narrower screens.
    • Making navigation usable without mouse hover.
    • Increasing the size and spacing of buttons and links for touch interaction.

    For an ASP.NET Web Forms or MVC website, these changes may be implemented through the existing page markup and styles while retaining shared server-side logic. If mobile visitors need substantially different content or workflows, more extensive page changes may be needed. The appropriate approach will depend on the current implementation.

    If you do not maintain the website yourself, you can share these points with the developer or team responsible for it.

    Please share, if possible:

    • A screenshot of one affected page on a mobile device.
    • What visitors find difficult to view or use on that page.
    • The mobile device and browser used.

    If available, please also provide a screenshot or small portion of the project structure. A representative page/layout file and its related CSS would help with a more detailed review, but you do not need to provide all of these details in your initial response.

    Please remove any sensitive or confidential information before posting code or screenshots.

    References

    • Mobile support in ASP.NET Web Forms and MVC: Covers client-side layout adaptation and mobile-specific pages for Web Forms 4.0 and MVC 3.0. This is legacy guidance, so its older device-detection examples should not be treated as current implementation recommendations.
    • Supported platforms for .NET MAUI: Useful if you are considering a separate mobile application. MAUI targets native mobile and desktop platforms rather than a browser-based website.

    These details will help identify the current setup and the specific mobile issues, so that the guidance fits your existing website and the experience you want to provide.
    If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation. 

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Bruce (SqlWork.com) 85,536 Reputation points
    2026-10-13T13:32:07.8+00:00

    If you used the old visual designer and explicit positions, then you pretty much need to recode every page. You can start with a responsive framework like bootstrap.

    https://getbootstrap.com

    Google responsive design with bootstrap to get lessons.

    Note: with responsive design, you still need to layout for multiple device sizes, you just get to use a single code base.

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-10-10T07:07:08.26+00:00

    Make the existing site responsive first; mobile friendliness normally requires updating its shared HTML and CSS, not converting it into a .NET MAUI application or immediately rewriting the ASP.NET back end.

    1. Retrofit the current user interface

    Apply these changes first to the site’s master page or shared layout so they affect every page.

    Add the viewport declaration inside <head>:

    <meta name="viewport"
          content="width=device-width, initial-scale=1">
    

    Without this setting, mobile browsers can render the page in a wide virtual viewport and scale it down, producing tiny text and forcing users to zoom. The page must also avoid elements with fixed widths larger than the device.^1^

    Replace fixed layouts with responsive CSS:

    .page {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 1rem;
    }
    img, video {
        max-width: 100%;
        height: auto;
    }
    @media (max-width: 768px) {
        .columns { display: block; }
        .sidebar { display: none; }
        input, select, button { width: 100%; }
    }
    

    CSS media queries let the same page switch from a desktop layout to a mobile layout according to the available width.^2^

    Then work through the shared controls and page templates:

    1. Replace fixed pixel widths with percentages, Flexbox, or CSS Grid.
    2. Collapse multi-column pages into one column on narrow screens.
    3. Make navigation usable by touch; do not require mouse hover.
    4. Increase spacing around links, buttons, checkboxes, and form controls.
    5. Make tables scroll horizontally or replace wide tables with card-style layouts.
    6. Serve appropriately sized images and remove unnecessary scripts or assets.
    7. Keep primary content and actions visible; hide only genuinely secondary material.

    For an ASP.NET Web Forms site, update the master page, shared user controls, and common stylesheet first. For MVC, begin with Views/Shared/_Layout.cshtml, shared partial views, and the common stylesheet.

    2. Test page by page

    Test representative pages at phone, tablet, and desktop widths, including both portrait and landscape orientation. Do not rely on detecting a particular phone model: screen dimensions can change when a device rotates, and CSS based on layout characteristics is generally better suited to minor presentation differences.^1^

    Prioritize:

    • Home and navigation pages
    • Login, registration, and password-reset flows
    • Forms, validation messages, and file uploads
    • Search and results
    • Checkout or other critical transactions
    • Data tables and reports

    Check that there is no unintended horizontal scrolling, text is readable without zooming, controls are easy to tap, and workflows can be completed using touch.

    3. Use separate mobile pages only when necessary

    Responsive CSS is appropriate when desktop and mobile users receive essentially the same content and workflow. If mobile users need substantially different markup or a simplified workflow, ASP.NET Web Forms and MVC can serve mobile-specific pages or views. This provides more flexibility but duplicates UI code and increases maintenance cost; Microsoft’s ASP.NET guidance recommends combining responsive client-side techniques with server-side variations only where major differences require them.^3^

    Avoid the obsolete ASP.NET Mobile Controls from older ASP.NET releases. They targeted WAP-era formats rather than the HTML used by modern mobile browsers.^1^

    4. Modernize the framework separately

    A responsive retrofit does not require an immediate migration to ASP.NET Core. If the 15-year-old codebase is difficult to maintain, migrate as a separate project after stabilizing the mobile UI.

    For a production application that must remain online, Microsoft recommends incremental migration for most complex ASP.NET Framework applications.^4^ The documented approach creates an ASP.NET Core application alongside the original application, proxies requests to it, and migrates routes gradually. Authentication, session state, logging, caching, and configuration should be planned before moving dependent routes.^5^

    .NET MAUI is relevant only if a separately installed iOS or Android app is required. It does not make an existing browser-based website responsive.


    References

    1. How To: Add Mobile Pages to Your ASP.NET Web Forms / MVC Application
    2. ASP.NET MVC 4 Mobile Features
    3. Mobile Apps & Sites with ASP.NET
    4. Migrate from ASP.NET Framework to ASP.NET Core
    5. Get started with incremental ASP.NET to ASP.NET Core migration
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.