Build and customize
Preview on desktop, tablet and phone
See how your website looks on a computer, a tablet and a phone before you publish. Switch device views, move between pages and fix layouts that break.
Most of your visitors may open your website on a phone. The editor lets you check each size without leaving the page. You click a device button, and the preview changes width.
Switch the device view
- Open your project in the editor.
- Look at the top bar above the preview. Three small icons sit together on the left.
- Click the one you want.
| Icon | Tooltip | What you see |
|---|---|---|
| Monitor | Desktop view | Your site fills the whole preview area, edge to edge. |
| Tablet | Tablet view | Your site at tablet width (768 pixels), in a rounded frame. |
| Phone | Mobile view | Your site at phone width (375 pixels), in a rounded frame. |
The icon for the current view is highlighted. The preview resizes at once, and your site stays live. You can scroll, click links and open pages inside it.
Move between pages
Your site may have several pages. You do not need to publish to look at them.
- Click the address bar above the preview. A list shows every page with its path, such as /about or /contact. Pick one to go there.
- Type a path, such as /pricing, and press Enter.
- Use Back and Forward to walk through pages you have visited. They move inside your site only. They never take you out of the editor.
- Click links inside the preview as a visitor would.
Check every page in every size. A page that looks good on desktop can break on a phone.
Other preview tools
| Control | What it does |
|---|---|
| Reload preview | Reloads the page in the preview. Use it if something looks stuck. |
| Open preview in a new tab | Opens the preview in its own browser tab. Use it for a full-screen look. |
| View Source Code | Shows your files instead of the preview. See View and export your code. |
A small "Edit with eCG" mark sits in the bottom-right corner of the preview frame. Click it and you go to the eComGear home page. It hides only when your workspace has white label switched on. See White label.
What the preview does while the agent works
While a request runs, the preview keeps showing the last saved version. A note says "Still building: this is the last saved version. Your changes show when the run finishes." Click the note to hide it.
When the agent writes files, a small tag at the top says "Applying changes…". It stays only for a moment. If a request answers a question and changes nothing, the tag says "Nothing was changed".
Fix a layout that breaks on one size
Say you switch to Mobile view and the menu overlaps the logo. The agent does not see which device view you are looking at. Tell it.
- Note which view shows the problem and which page it is on.
- Describe it in the chat: "On a phone, the menu button covers the logo on the home page. Move the menu to the right."
- Send it. The agent fixes the layout.
- Look at the preview again in the same view.
For one exact part, use Inspect and click the problem element. See Change one element at a time.
How close is it to a real phone?
The device views change the width of the page. They do not copy a real phone's browser. Layout, text and images show the way they will on a phone-sized screen. Small details can still differ: fonts, touch behavior and browser bars.
After you publish, open your site on a real phone once. See Publish your website.
If something goes wrong
| What you see | What to do |
|---|---|
| The device buttons are greyed out | Your project has nothing to show yet. Wait for the first build to finish. |
| "Preparing your preview" | The preview is starting. Wait a few moments. |
| "App rendered nothing" | The page loaded blank. Choose Repair or Retry. See Fix a page that does not load. |
| "The preview needs a fix" | The last update did not build. Choose Repair. See Fix a page that does not load. |
| The preview shows an old version | Choose Reload preview. |
| A page name is missing from the address list | The list shows the pages the agent has created. Ask the agent to add the page. |