# How to handle letterboxing / black borders on mobile?

**URL:** <https://forum.defold.com/t/how-to-handle-letterboxing-black-borders-on-mobile/74046>\
**Category:** Questions\
**Created:** [September 14, 2023, 3:17pm UTC](https://forum.defold.com/t/how-to-handle-letterboxing-black-borders-on-mobile/74046 "2023-09-14T15:17:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enigma\_easel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/enigma_easel/32/28731_2.png) [@enigma\_easel](https://forum.defold.com/u/enigma_easel)\
**Post date:** [September 14, 2023, 3:17pm UTC](https://forum.defold.com/t/how-to-handle-letterboxing-black-borders-on-mobile/74046/1 "2023-09-14T15:17:38Z")

</div>

Hey folks,

New user to the forum here. I making a little game for mobile, I have been looking it how to adapt it for multiple screen sizes.

 ![mobile_left_right](https://forum-defold-uploads.b-cdn.net/original/3X/8/9/891ce4b621cec1353d353fa60328fe68f923cd8a.png)

The game I’m making is similar to Mike Dangers, where the hero goes from left edge to right edge.  
As seen in the screenshot above, there are black bars on left and right of the game on certain devices.

I’m using mobile template provided by Defold, I don’t want to change the projection that stretches my game, I want to main the aspect ratio of my game.

What should I do to utilise the whole space on x-axis and y-axis? Any suggestions.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [September 14, 2023, 9:32pm UTC](https://forum.defold.com/t/how-to-handle-letterboxing-black-borders-on-mobile/74046/2 "2023-09-14T21:32:38Z")

</div>

You should be able to use Fixed or Fixed-Fit projection:

> **[Fixed fit projection - The render pipeline in Defold](https://defold.com/manuals/render/#fixed-fit-projection)**
>
> Every object that is shown on screen by the engine: sprites, models, tiles, particles or GUI nodes, are drawn by a renderer. At the heart of the renderer is a render script that controls the render pipeline. By default, every 2D object is drawn with...
