[2D] [C#] How to Make my Walls be at the extreme left and right bounds?

Currently I have an android game that moves a character from left to right and I have created invisible Walls to prevent my character from falling out of the scene. However, I am unable to align the walls exactly at the left and right bounds. It looks fine when I test it in Unity but does not work when I test it on my phone. The following is my attempt at correcting it:

using UnityEngine;
using System.Collections;

public class Walls : MonoBehaviour {

    public GameObject leftWall;
    public GameObject rightWall;
    public Camera myCamera;
    private Transform leftWallInPos;
    private Transform rightWallInPos;

    // Use this for initialization
    void Start()
    {

        myCamera.GetComponent<Camera>();
        fixRightWall();
        fixLeftWall();

    }

    void fixLeftWall()
    {
        leftWall = GameObject.Find("left.wall");
        leftWallInPos.transform.position = Camera.main.ScreenToWorldPoint(new Vector2(0.05f, 0.5f));
    }

    void fixRightWall()
    {
        rightWall = GameObject.Find("right.wall");
        rightWallInPos.transform.position = Camera.main.ScreenToWorldPoint(new Vector2(0.95f, 0.5f));
    }
}

Is that you want to set the wall position based the percentage of the screen space? If so, maybe you should use ViewportToWorldPoint as follows:

leftWallInPos.transform.position = Camera.main.ViewportToWorldPoint(new Vector2(0.05f, 0.5f));

Yword already said something, on another note you could get the bounds via putting everything into one object.

… I hope I linked the right thing…